From cd0a337d26ab9828dbc3a430b6fc156f5951966d Mon Sep 17 00:00:00 2001 From: Jim Hodapp Date: Thu, 12 Dec 2024 15:39:20 -0600 Subject: [PATCH] Tweak some of the environment variable names to align with the ones the Rust backend expects --- docker-compose.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 400e9e9..e0ad329 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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: @@ -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