fix: add coolify external network to api/web for internal DB access

This commit is contained in:
Lizandro Guarnizo
2026-06-25 20:55:47 -05:00
parent 2985433ecb
commit 696ff9fa51
+8
View File
@@ -1,5 +1,9 @@
# Coolify Deployment — docker-compose for production (managed DB/Redis by Coolify)
networks:
coolify:
external: true
services:
api:
build:
@@ -7,6 +11,8 @@ services:
dockerfile: apps/api/Dockerfile
container_name: moraworld-api
restart: unless-stopped
networks:
- coolify
environment:
- NODE_ENV=production
- PORT=3001
@@ -49,6 +55,8 @@ services:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL}
container_name: moraworld-web
restart: unless-stopped
networks:
- coolify
environment:
- NODE_ENV=production
- PORT=3000