Initial docker file and stuff
This commit is contained in:
@@ -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: {}
|
||||
|
||||
Reference in New Issue
Block a user