# Production override: attach to an existing external reverse-proxy Docker # network instead of publishing a host port. The proxy routes # manga-api. -> manga-api:8080 over the shared network. # # docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d # # The network must already exist (created by your proxy stack): # docker network create proxy # if it doesn't yet # Override the name with PROXY_NETWORK in .env if yours differs. services: manga-api: # Drop the loopback port publish; traffic comes over the proxy network. ports: !reset [] networks: - proxy networks: proxy: external: true name: ${PROXY_NETWORK:-proxy}