mirror of
https://github.com/openSUSE/osem.git
synced 2025-12-23 22:28:15 -05:00
- No need to manually install bundler anymore - bundle to vendor/bundle - build nokogiri against system libraries - expose the port foreman is using - serve static files
34 lines
882 B
Plaintext
34 lines
882 B
Plaintext
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
PGDATA: /var/lib/postgresql/data/pgdata
|
|
POSTGRES_USER: osem
|
|
POSTGRES_PASSWORD: mysecretpassword
|
|
volumes:
|
|
- osem_production_database:/var/lib/postgresql/data/pgdata
|
|
osem:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.production
|
|
depends_on:
|
|
- postgres
|
|
ports:
|
|
- 80:5000
|
|
env_file: .env.production # see dotenv.example file
|
|
environment:
|
|
OSEM_DB_HOST: postgres
|
|
OSEM_DB_USER: osem
|
|
OSEM_DB_PASSWORD: mysecretpassword
|
|
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:
|