Skip to content

Commit 2461703

Browse files
committed
update docker-compose to use environment variables for backend command
1 parent 022a039 commit 2461703

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker-compose.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
- db # Ensure db service starts before backend
2929
networks:
3030
- backend_network # Connect to backend_network
31-
command: ["sh", "-c", "sleep 5 && /usr/local/bin/refactor_platform_rs"] # Wait for Postgres and run the app
31+
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
3232

3333
frontend:
3434
build:
@@ -41,7 +41,7 @@ services:
4141
depends_on:
4242
- backend
4343
# Override command to run the frontend binary instead of the backend binary
44-
command: ["sh", "-c", "sleep 5 && /usr/local/bin/refactor_platform_rs"]
44+
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\\\""]
4545

4646
networks:
4747
backend_network:

0 commit comments

Comments
 (0)