mirror of
https://github.com/arthur-pbty/flint.git
synced 2026-08-01 20:29:03 +02:00
feat: mise à jour de la configuration de production et amélioration des variables d'environnement
This commit is contained in:
+6
-8
@@ -82,8 +82,8 @@ services:
|
||||
DATABASE_URL: postgresql://${POSTGRES_USER:-discord_saas}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-discord_saas}
|
||||
DATABASE_SSL: "false"
|
||||
REDIS_URL: redis://:${REDIS_PASSWORD}@redis:6379
|
||||
WEB_URL: ${WEB_URL:-http://localhost:3000}
|
||||
API_BASE_URL: ${API_BASE_URL:-http://localhost:4000}
|
||||
WEB_URL: ${WEB_URL}
|
||||
API_BASE_URL: ${API_BASE_URL}
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
@@ -115,8 +115,6 @@ services:
|
||||
condition: service_healthy
|
||||
api:
|
||||
condition: service_started
|
||||
ports:
|
||||
- "4100:4100"
|
||||
networks:
|
||||
- edge_net
|
||||
- backend_net
|
||||
@@ -127,19 +125,19 @@ services:
|
||||
context: .
|
||||
dockerfile: apps/web/Dockerfile
|
||||
args:
|
||||
NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL:-http://localhost:4000}
|
||||
NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL}
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 3000
|
||||
NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL:-http://localhost:4000}
|
||||
API_BASE_URL: ${API_BASE_URL:-http://api:4000}
|
||||
NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL}
|
||||
API_BASE_URL: http://api:4000
|
||||
depends_on:
|
||||
api:
|
||||
condition: service_started
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "${WEB_PORT}:3000"
|
||||
networks:
|
||||
- edge_net
|
||||
- backend_net
|
||||
|
||||
Reference in New Issue
Block a user