Skip to content

Commit

Permalink
Tweak some of the environment variable names to align with the ones t…
Browse files Browse the repository at this point in the history
…he Rust backend expects
  • Loading branch information
jhodapp committed Dec 12, 2024
1 parent f9f4ce5 commit cd0a337
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ services:
POSTGRES_HOST: postgres # Set PostgreSQL host to "postgres" service
POSTGRES_PORT: ${POSTGRES_PORT} # Set PostgreSQL port from environment variable
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/${POSTGRES_DB} # Configure database URL
SERVICE_PORT: ${SERVICE_PORT} # Set service port from environment variable
SERVICE_INTERFACE: ${SERVICE_INTERFACE} # Set service interface from environment variable
PORT: ${BACKEND_PORT} # Set service port from environment variable
INTERFACE: ${BACKEND_INTERFACE} # Set service interface from environment variable
ports:
- "${SERVICE_PORT}:${SERVICE_PORT}" # Map host port to container's service port
- "${BACKEND_PORT}:${BACKEND_PORT}" # Map host port to container's service port
depends_on:
- postgres # Ensure postgres service starts before rust-app
networks:
Expand All @@ -50,7 +50,7 @@ services:
dockerfile: Dockerfile
target: runner # Use runner target
ports:
- "${NEXTJS_FRONTEND_PORT}:${NEXTJS_FRONTEND_PORT}" # Map host port to frontend container's service port
- "${FRONTEND_PORT}:${FRONTEND_PORT}" # Map host port to frontend container's service port
depends_on:
- rust-app # Ensure postgres service starts before rust-app

Expand Down

0 comments on commit cd0a337

Please sign in to comment.