From e3fb2752b7bf8b1f83476e00023a7d05c5a28655 Mon Sep 17 00:00:00 2001 From: ordinarthur <@arthurbarre.js@gmail.com> Date: Thu, 12 Mar 2026 16:47:34 +0100 Subject: [PATCH] fix: connect fastify to coolify network for DB access The Docker Compose app creates its own isolated network, so the fastify container cannot reach the PostgreSQL database managed separately by Coolify. Adding the external 'coolify' network allows inter-container communication. Co-Authored-By: Claude Opus 4.6 --- docker-compose.prod.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index af217b4..1bd044e 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -13,6 +13,9 @@ services: - ADMIN_PASSWORD - COOKIE_SECRET - NODE_ENV=production + networks: + - coolify + - default restart: unless-stopped labels: - traefik.enable=true @@ -21,3 +24,7 @@ services: - traefik.http.routers.rebours.tls=true - traefik.http.routers.rebours.tls.certresolver=letsencrypt - traefik.http.services.rebours.loadbalancer.server.port=3000 + +networks: + coolify: + external: true