Files
osem/docker-compose.yml.production-example
Henne Vogelsang 2a7acf7369 Fixup INSTALL.md
- add a big fat warning
- Do not mentioned the deprecated docker setup anymore
- Fixup docker-compose production setup
2019-02-01 01:00:19 +01:00

33 lines
835 B
Plaintext

version: "2"
services:
production_database:
image: postgres
environment:
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- osem_production_database:/var/lib/postgresql/data/pgdata
production_web:
build:
context: .
dockerfile: Dockerfile.production
depends_on:
- production_database
ports:
- 8080:3000
env_file: .env.production # see dotenv.example file
environment:
OSEM_DB_HOST: production_database
command: /osem/bin/osem-init.sh
volumes:
- osem_production_web_data:/osem/public/system
- osem_production_web_assets:/osem/public/assets
- osem_production_web_logs:/osem/log
# named volumes to persist data
volumes:
osem_production_database:
osem_production_web_data:
osem_production_web_assets:
osem_production_web_logs: