fix: load config on runtime

This commit is contained in:
Mohamed Marrouchi
2024-09-17 17:12:20 +01:00
committed by Yassine Sallemi
parent d2555d9f94
commit aa05fe1704
7 changed files with 110 additions and 46 deletions

View File

@@ -16,6 +16,11 @@ services:
- ../api/migrations:/app/migrations
#- ../api/node_modules:/app/node_modules
command: ["npm", "run", "start:debug"]
hexabot-frontend:
build:
context: ../
dockerfile: ./frontend/Dockerfile
mongo-express:
container_name: mongoUi

View File

@@ -30,7 +30,6 @@ services:
condition: service_healthy
database-init:
condition: service_completed_successfully
healthcheck:
test: "wget --spider http://localhost:3000"
interval: 10s
@@ -40,12 +39,7 @@ services:
hexabot-frontend:
container_name: frontend
build:
context: ../
dockerfile: ./frontend/Dockerfile
args:
- NEXT_PUBLIC_API_ORIGIN=${NEXT_PUBLIC_API_ORIGIN}
- NEXT_PUBLIC_SSO_ENABLED=${NEXT_PUBLIC_SSO_ENABLED}
image: hexabot-ui:latest
env_file: .env
ports:
- ${APP_FRONTEND_PORT}:8080