mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Introduces openSUSE based docker-compose environment
This commit is contained in:
parent
824d83411d
commit
8fd3004d7f
7 changed files with 126 additions and 50 deletions
27
docker-compose.yml.production-example
Normal file
27
docker-compose.yml.production-example
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
version: "2"
|
||||
|
||||
services:
|
||||
database:
|
||||
image: postgres
|
||||
environment:
|
||||
PGDATA: /var/lib/postgresql/data/pgdata
|
||||
volumes:
|
||||
- database:/var/lib/postgresql/data/pgdata
|
||||
web:
|
||||
build: .
|
||||
dockerfile: Dockerfile.production
|
||||
env_file: .env.production # see dotenv.example file
|
||||
depends_on:
|
||||
- database
|
||||
ports:
|
||||
- 5000:5000
|
||||
volumes:
|
||||
- .:/osem
|
||||
- web-data:/osem/public/system
|
||||
- web-logs:/osem/log
|
||||
|
||||
# named volumes to persist data
|
||||
volumes:
|
||||
database:
|
||||
web-data:
|
||||
web-logs:
|
||||
Loading…
Add table
Add a link
Reference in a new issue