kitestacks-homelab/apps/kitestacks-portal/docker-compose.yml

31 lines
1 KiB
YAML

# Production cyberpunk portal — replaces gethomepage/homepage
#
# Notes:
# - Container name MUST be "homepage" so the existing Cloudflare tunnel route
# (www.kitestacks.com -> http://homepage:3000) continues to work unchanged.
# - Attached to the "kitestacks" external network so the cloudflared container
# can resolve "homepage" by DNS.
# - Listens internally on port 3000 (matching the tunnel route) AND externally
# on 3005 to preserve http://192.168.1.205:3005 access.
# - Metrics are served by the existing kitestacks-metrics-api container
# (shared with the test portal). nginx reaches it via host.docker.internal:8000.
services:
homepage:
image: nginx:alpine
container_name: homepage
restart: unless-stopped
ports:
- "3005:3000"
networks:
- default
- kitestacks
volumes:
- ./public:/usr/share/nginx/html:ro
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
kitestacks:
external: true