mirror of
https://github.com/openSUSE/osem.git
synced 2026-01-28 07:50:00 -05:00
- add a big fat warning - Do not mentioned the deprecated docker setup anymore - Fixup docker-compose production setup
33 lines
835 B
Plaintext
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:
|