fix(deploy): allow dev and prod stacks on the same Dokploy server
Stop publishing web on host port 8080, which clashed between stacks; Traefik reaches port 80 of the container through dokploy-network. Local testing now uses docker-compose.local.yml to publish the port. Proxy nginx to a `gruperly-api` alias that only exists on the stack's own network: the `api` service name is also registered on dokploy-network, so with two stacks nginx could reach the other environment's API. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
7
docker-compose.local.yml
Normal file
7
docker-compose.local.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
# Only for testing the production compose locally:
|
||||
# docker compose -f docker-compose.yml -f docker-compose.local.yml up --build -d
|
||||
# Dokploy does not use this file (Traefik reaches port 80 of the container).
|
||||
services:
|
||||
web:
|
||||
ports:
|
||||
- "8080:80"
|
||||
Reference in New Issue
Block a user