Initial docker file and stuff

This commit is contained in:
2023-09-24 17:41:48 -04:00
parent 9cf92b8c1f
commit 8d60a19b44
9 changed files with 5321 additions and 6 deletions

View File

@@ -16,6 +16,8 @@ services:
- db_logs:/var/log
ports:
- "${DATABASE_PORT}:5432"
networks:
- weather-backend
restart: unless-stopped
service:
@@ -23,11 +25,32 @@ services:
env_file:
- .env
ports:
- "${SERVICE_PORT}:${SERVICE_PORT}"
- "${SERVICE_PORT}:5000"
build:
context: service
depends_on:
- db
networks:
- weather-frontend
- weather-backend
restart: unless-stopped
ui:
container_name: weather-ui
env_file:
- .env
environment:
- NODE_ENV=${NODE_ENV}
ports:
- ${UI_PORT}:3000
build:
context: ui
target: dev
command: npm run dev
depends_on:
- service
networks:
- weather-frontend
restart: unless-stopped
volumes:
@@ -35,5 +58,5 @@ volumes:
db_logs:
networks:
default:
name: weather-backend
weather-frontend: {}
weather-backend: {}