Multiple projects using the same service name on a shared Docker network causes DNS resolution conflicts. Renamed to 'tunnel' for uniqueness.
32 lines
680 B
YAML
32 lines
680 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:
|
|
- public-network
|
|
|
|
tunnel:
|
|
image: cloudflare/cloudflared:latest
|
|
container_name: py-dvt-ate-tunnel
|
|
restart: unless-stopped
|
|
command: tunnel run
|
|
environment:
|
|
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
|
|
depends_on:
|
|
- streamlit
|
|
networks:
|
|
- public-network
|
|
|
|
networks:
|
|
public-network:
|
|
external: true
|