fix(compose): connect app to coolify network so Traefik can route traffic
Coolify's Traefik is on the 'coolify' Docker network. Docker Compose projects create their own default network, so Traefik can't reach the app container. Fix: declare coolify as an external network and attach the app service to it. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
34afb8d729
commit
df9f359c83
1 changed files with 5 additions and 0 deletions
|
|
@ -21,6 +21,9 @@ services:
|
||||||
JWT_SECRET: ${JWT_SECRET}
|
JWT_SECRET: ${JWT_SECRET}
|
||||||
# CORS allowed origins
|
# CORS allowed origins
|
||||||
ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-https://agenthub.barodine.net}
|
ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-https://agenthub.barodine.net}
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
- coolify
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
@ -146,3 +149,5 @@ networks:
|
||||||
default:
|
default:
|
||||||
labels:
|
labels:
|
||||||
- 'coolify.managed=true'
|
- 'coolify.managed=true'
|
||||||
|
coolify:
|
||||||
|
external: true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue