mirror of
https://github.com/openSUSE/osem.git
synced 2026-06-11 17:25:15 -04:00
28 lines
528 B
Plaintext
28 lines
528 B
Plaintext
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:
|