Files
codeocean/docker-compose.yml
2024-07-16 14:03:13 +02:00

55 lines
1.1 KiB
YAML

services:
db:
image: postgres:16
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: codeocean_user
POSTGRES_PASSWORD: secure_password
POSTGRES_DB: codeocean_production
app:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/codeocean
- config:/codeocean/config
ports:
- "7123:7000"
depends_on:
- db
- prometheus
environment:
POSTGRES_USER: codeocean_user
POSTGRES_PASSWORD: secure_password
ADMIN_MAIL: support@htwkalender.de
ADMIN_PASSWORD: htwkalender
RAILS_ENV: production
PROMETHEUS_EXPORTER_HOST: prometheus
PROMETHEUS_EXPORTER_PORT: 9090
prometheus:
image: prom/prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- "9090:9090"
nginx:
image: nginx:latest
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/certs:/etc/nginx/certs
ports:
- "443:443"
depends_on:
- app
restart: always
volumes:
db_data:
config: