- IDLE_PAUSE_SECONDS replaces IDLE_TIMEOUT_MINUTES - Container stays running, physics pauses when idle - No restart mechanism needed - Remove wakeup service (no longer needed)
45 lines
907 B
YAML
45 lines
907 B
YAML
services:
|
|
streamlit:
|
|
build:
|
|
context: ..
|
|
dockerfile: Dockerfile
|
|
container_name: py-dvt-ate-streamlit
|
|
restart: unless-stopped
|
|
environment:
|
|
- IDLE_PAUSE_SECONDS=${IDLE_PAUSE_SECONDS:-30} # Pause physics after 30s idle
|
|
expose:
|
|
- "8080"
|
|
volumes:
|
|
- ./data:/app/data
|
|
networks:
|
|
- dvt-ate
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
container_name: py-dvt-ate-nginx
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
expose:
|
|
- "80"
|
|
depends_on:
|
|
- streamlit
|
|
networks:
|
|
- dvt-ate
|
|
|
|
cloudflared:
|
|
image: cloudflare/cloudflared:latest
|
|
container_name: py-dvt-ate-tunnel
|
|
restart: unless-stopped
|
|
command: tunnel run
|
|
environment:
|
|
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
|
|
depends_on:
|
|
- nginx
|
|
networks:
|
|
- dvt-ate
|
|
|
|
networks:
|
|
dvt-ate:
|
|
driver: bridge
|