32 lines
981 B
YAML
32 lines
981 B
YAML
services:
|
|
app:
|
|
build: .
|
|
init: true
|
|
environment:
|
|
- PORT=3000
|
|
- DATA_FILE=/app/state/db.json
|
|
- ML_WEIGHTS_PATH=/app/state/ml_policy_weights.json
|
|
- GMAT_BIN=/opt/gmat/bin/GmatConsole-R2026a
|
|
- GMAT_CONSOLE_BIN=/opt/gmat/bin/GmatConsole-R2026a
|
|
- GMAT_WORK_DIR=/app/state/gmat-work
|
|
- ML_AI_ENABLED=${ML_AI_ENABLED:-1}
|
|
- SIM_RATE=${SIM_RATE:-30}
|
|
- AI_DISABLED=${AI_DISABLED:-0}
|
|
- SPACEGAEM_PASSWORD=${SPACEGAEM_PASSWORD:-}
|
|
volumes:
|
|
- ./state:/app/state
|
|
- ${GMAT_DIST_DIR:-../GMAT/GMAT-R2026a-Linux-x64}:/opt/gmat:ro
|
|
# No exposed ports - only reachable via the tunnel
|
|
restart: unless-stopped
|
|
# ports:
|
|
# - "3000:3000"
|
|
|
|
cloudflared:
|
|
image: cloudflare/cloudflared:latest
|
|
command: tunnel --no-autoupdate run --token ${TUNNEL_TOKEN}
|
|
environment:
|
|
- TUNNEL_TOKEN=${TUNNEL_TOKEN}
|
|
depends_on:
|
|
app:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|