fix(deploy): use expose instead of host ports for Coolify compose
Coolify honors host port bindings in the compose and the host already has :80 (its own proxy) and :8000 allocated, so publishing them fails the deploy at container start. Switch web/api to expose-only; nginx still reaches api over the compose network, and Coolify routes the domain via docker_compose_domains. Add a docker-compose.override.yml so local 'docker compose up' still publishes ports.
This commit is contained in:
11
docker-compose.override.yml
Normal file
11
docker-compose.override.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
# Local-only host port bindings for `docker compose up`. Docker Compose
|
||||
# auto-merges this file locally; Coolify runs with an explicit
|
||||
# `-f docker-compose.yml`, so it ignores this override (no host-port conflicts
|
||||
# on the Coolify host). Open http://localhost:8080 after `docker compose up`.
|
||||
services:
|
||||
web:
|
||||
ports:
|
||||
- "8080:80"
|
||||
api:
|
||||
ports:
|
||||
- "8000:8000"
|
||||
Reference in New Issue
Block a user