Files
ELM/docker-compose.yml
T
Typhus 1753d67752 prerelease/0.6.0 (#1)
Co-authored-by: David Rodenkirchen <drodenkirchen@linetco.com>
Reviewed-on: #1
2026-05-27 23:17:52 +00:00

40 lines
770 B
YAML

services:
web:
build: .
depends_on:
db:
condition: service_healthy
environment:
PYTHONPATH: /opt/elm
ports:
- "8000:8000"
- "8001:8001"
volumes:
- ./:/opt/elm
entrypoint: ["/bin/sh", "-c", "cd /opt/elm/src && rio run --release --public --port 8000"]
db:
image: mongo:8
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: elm
MONGO_INITDB_ROOT_PASSWORD: elm
MONGO_INITDB_DATABASE: elm
ports:
- "27017:27017"
volumes:
- database:/data/db
healthcheck:
test: ["CMD", "mongosh", "--quiet", "--eval", "db.adminCommand('ping').ok"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
volumes:
database: