fix(docker): use host nginx, fix libgdk-pixbuf package name
- Update libgdk-pixbuf2.0-0 to libgdk-pixbuf-2.0-0 for Debian Trixie - Remove bundled nginx container in favor of host nginx - Use host networking for cloudflared to reach host nginx - Expose streamlit on localhost:8080 for host nginx proxy
This commit is contained in:
@@ -6,7 +6,7 @@ WORKDIR /app
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libpango-1.0-0 \
|
||||
libpangocairo-1.0-0 \
|
||||
libgdk-pixbuf2.0-0 \
|
||||
libgdk-pixbuf-2.0-0 \
|
||||
libffi-dev \
|
||||
shared-mime-info \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -7,37 +7,23 @@ services:
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- IDLE_PAUSE_SECONDS=${IDLE_PAUSE_SECONDS:-30} # Pause physics after 30s idle
|
||||
expose:
|
||||
- "8080"
|
||||
ports:
|
||||
- "127.0.0.1:8080: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
|
||||
network_mode: host
|
||||
command: tunnel run
|
||||
environment:
|
||||
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
|
||||
depends_on:
|
||||
- nginx
|
||||
networks:
|
||||
- dvt-ate
|
||||
- streamlit
|
||||
|
||||
networks:
|
||||
dvt-ate:
|
||||
|
||||
Reference in New Issue
Block a user