Skip to content

Commit

Permalink
[IMP] Make frontend use existing env key configs to make config a bit…
Browse files Browse the repository at this point in the history
… easier
  • Loading branch information
amber-vale committed Jan 26, 2025
1 parent 44bce5e commit 9dec932
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ services:
- ./source/app:/iriswebapp/app
- ./ui/dist:/iriswebapp/static
healthcheck:
disable: true
test: curl --head --fail http://localhost:8000 || exit 1
start_period: 60s

Expand Down Expand Up @@ -76,16 +77,16 @@ services:
container_name: iris_sveltekit_frontend
working_dir: /app
environment:
- IRIS_SVELTEKIT_FRONTEND_DIR=${IRIS_SVELTEKIT_FRONTEND_DIR:-../frontend}
- PUBLIC_EXTERNAL_API_URL=https://127.0.0.1
- PUBLIC_INTERNAL_API_URL=http://app:8000
- IRIS_SVELTEKIT_FRONTEND_DIR=${IRIS_SVELTEKIT_FRONTEND_DIR:-../iris-frontend}
- PUBLIC_EXTERNAL_API_URL=${PUBLIC_EXTERNAL_API_URL:-https://127.0.0.1}
- PUBLIC_INTERNAL_API_URL=http://${IRIS_UPSTREAM_SERVER}:${IRIS_UPSTREAM_PORT}
- PUBLIC_USE_MOCK_API_DATA=false
- ORIGIN=https://127.0.0.1
- PROTOCOL_HEADER=x-forwarded-proto
- HOST_HEADER=x-forwarded-host
- NODE_ENV=development
volumes:
- ${IRIS_SVELTEKIT_FRONTEND_DIR}:/app # Map the frontend directory dynamically
- ${IRIS_SVELTEKIT_FRONTEND_DIR:-../iris-frontend}:/app # Map the frontend directory dynamically
- /app/node_modules # Ensure `node_modules` is preserved inside the container
ports:
- "5173:5173"
Expand Down

0 comments on commit 9dec932

Please sign in to comment.