docker-compose.prod.yml contains unused nginx/certbot services and conflicting VITE env #40

Closed
opened 2026-08-23 05:42:06 +00:00 by nasandre · 2 comments
Owner

Cleanup

  1. nginx + certbot services are dead config: production TLS is handled by Caddy (routes /api→8873, /mcp→8874, rest→8872). No nginx container is running, yet compose still defines `nginx` and `certbot` services referencing `./nginx-prod.conf` and SSL dirs. Confusing and risks someone starting a conflicting proxy on :80/:443.
  2. VITE_API_URL defined twice with different values for frontend: build arg `https://roguetrader.tabletopamsterdam.nl/api` vs runtime env `http://backend:3001`. Vite bakes env at build time — runtime value is misleading dead weight.

Suggested fix

Remove nginx/certbot services (or move to a clearly-named legacy file) and drop the runtime VITE_* env block from frontend.

## Cleanup 1. **nginx + certbot services are dead config**: production TLS is handled by Caddy (routes /api→8873, /mcp→8874, rest→8872). No nginx container is running, yet compose still defines \`nginx\` and \`certbot\` services referencing \`./nginx-prod.conf\` and SSL dirs. Confusing and risks someone starting a conflicting proxy on :80/:443. 2. **VITE_API_URL defined twice with different values** for frontend: build arg \`https://roguetrader.tabletopamsterdam.nl/api\` vs runtime env \`http://backend:3001\`. Vite bakes env at build time — runtime value is misleading dead weight. ## Suggested fix Remove nginx/certbot services (or move to a clearly-named legacy file) and drop the runtime VITE_* env block from frontend.
Author
Owner

✅ Fixed in docker-compose.prod.yml:

  • Removed unused nginx + certbot services (TLS is handled by Caddy)
  • Removed misleading runtime VITE_API_URL/VITE_MCP_URL env from frontend (Vite bakes env at build time via build args)
✅ **Fixed** in docker-compose.prod.yml: - Removed unused nginx + certbot services (TLS is handled by Caddy) - Removed misleading runtime VITE_API_URL/VITE_MCP_URL env from frontend (Vite bakes env at build time via build args)
Author
Owner

✅ Fixed (commit 05b5453) — removed nginx + certbot services and the conflicting runtime VITE_* env block from docker-compose.prod.yml. Compose now only defines backend / mcp-server / frontend. Full stack redeployed cleanly with the new file.

✅ **Fixed** (commit `05b5453`) — removed nginx + certbot services and the conflicting runtime VITE_* env block from docker-compose.prod.yml. Compose now only defines backend / mcp-server / frontend. Full stack redeployed cleanly with the new file.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nasandre/wh40-rogue-trader#40
No description provided.