Tweaked makefiles/docker files

This commit is contained in:
2023-09-29 11:12:57 -04:00
parent 2ba9d93bfd
commit 0b25745895
6 changed files with 30 additions and 19 deletions

View File

@@ -15,7 +15,7 @@ services:
- db:/var/lib/postgresql/data
- db_logs:/var/log
ports:
- "${DATABASE_PORT}:5432"
- "${DATABASE_PORT:-5432}:5432"
networks:
- weather-backend
restart: unless-stopped
@@ -25,7 +25,7 @@ services:
env_file:
- .env
ports:
- "${SERVICE_PORT}:5000"
- "${SERVICE_PORT:-5000}:5000"
build:
context: service
depends_on:
@@ -40,9 +40,9 @@ services:
env_file:
- .env
environment:
- NODE_ENV=${NODE_ENV}
- NODE_ENV=${NODE_ENV:-production}
ports:
- ${UI_PORT}:3000
- ${UI_PORT:-3000}:3000
build:
context: ui
depends_on: