add usage of environment variables

This commit is contained in:
2025-11-20 19:35:58 +00:00
parent cc56cd43e5
commit 807dea6854
3 changed files with 20 additions and 13 deletions

View File

@@ -32,14 +32,14 @@ services:
build:
context: ./backend
dockerfile: Dockerfile
container_name: backend
container_name: "${BACKEND_HOST}"
restart: unless-stopped
# ports:
# - "${BACKEND_PORT}:8080"
depends_on:
- db
networks:
- app-network
env_file:
- ./.env
db:
image: postgres:16
@@ -49,7 +49,5 @@ services:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_DB: "${POSTGRES_DB}"
# ports:
# - "${DB_PORT}:5432"
networks:
- app-network