Skip to content

Commit

Permalink
update docker-compose to use environment variables for backend command
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcdonough committed Feb 10, 2025
1 parent 09b38d9 commit 13a682f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
- db # Ensure db service starts before backend
networks:
- backend_network # Connect to backend_network
command: ["sh", "-c", "sleep 5 && /usr/local/bin/refactor_platform_rs"] # Wait for Postgres and run the app
command: ["/bin/bash", "-c", "/usr/local/bin/refactor_platform_rs -l \\\"$BACKEND_LOG_FILTER_LEVEL\\\" -i \\\"$BACKEND_INTERFACE\\\" -p \\\"$BACKEND_PORT\\\" -d \\\"$DATABASE_URL\\\" --allowed-origins=\\\"$BACKEND_ALLOWED_ORIGINS\\\""] # Wait for Postgres and run the app

frontend:
build:
Expand All @@ -41,7 +41,7 @@ services:
depends_on:
- backend
# Override command to run the frontend binary instead of the backend binary
command: ["sh", "-c", "sleep 5 && /usr/local/bin/refactor_platform_rs"]
command: ["/bin/bash", "-c", "/usr/local/bin/refactor_platform_rs -l \\\"$BACKEND_LOG_FILTER_LEVEL\\\" -i \\\"$BACKEND_INTERFACE\\\" -p \\\"$BACKEND_PORT\\\" -d \\\"$DATABASE_URL\\\" --allowed-origins=\\\"$BACKEND_ALLOWED_ORIGINS\\\""]

networks:
backend_network:
Expand Down

0 comments on commit 13a682f

Please sign in to comment.