fix(docker): use host nginx, fix libgdk-pixbuf package name
All checks were successful
CI / Lint (push) Successful in 4s
CI / Type Check (push) Successful in 19s
CI / Test (push) Successful in 52s
CI / Release (push) Has been skipped

- 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:
2026-01-29 22:24:02 +00:00
parent a6ef649090
commit 51a479c61e
2 changed files with 5 additions and 19 deletions

View File

@@ -6,7 +6,7 @@ WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
libpango-1.0-0 \ libpango-1.0-0 \
libpangocairo-1.0-0 \ libpangocairo-1.0-0 \
libgdk-pixbuf2.0-0 \ libgdk-pixbuf-2.0-0 \
libffi-dev \ libffi-dev \
shared-mime-info \ shared-mime-info \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*

View File

@@ -7,37 +7,23 @@ services:
restart: unless-stopped restart: unless-stopped
environment: environment:
- IDLE_PAUSE_SECONDS=${IDLE_PAUSE_SECONDS:-30} # Pause physics after 30s idle - IDLE_PAUSE_SECONDS=${IDLE_PAUSE_SECONDS:-30} # Pause physics after 30s idle
expose: ports:
- "8080" - "127.0.0.1:8080:8080"
volumes: volumes:
- ./data:/app/data - ./data:/app/data
networks: networks:
- dvt-ate - 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: cloudflared:
image: cloudflare/cloudflared:latest image: cloudflare/cloudflared:latest
container_name: py-dvt-ate-tunnel container_name: py-dvt-ate-tunnel
restart: unless-stopped restart: unless-stopped
network_mode: host
command: tunnel run command: tunnel run
environment: environment:
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN} - TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
depends_on: depends_on:
- nginx - streamlit
networks:
- dvt-ate
networks: networks:
dvt-ate: dvt-ate: