fix: add coolify external network to api/web for internal DB access
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user