Hot reload ui

This commit is contained in:
2023-09-28 23:28:30 -04:00
parent 8d60a19b44
commit 28886eb93b
4 changed files with 27 additions and 1170 deletions

26
ui/docker-compose.yml Normal file
View File

@@ -0,0 +1,26 @@
version: '3'
name: weather
services:
ui:
container_name: weather-ui
env_file:
- .env
environment:
- NODE_ENV=${NODE_ENV:-development}
ports:
- ${UI_PORT:-8080}:3000
build:
context: ./
target: dev
command: "npm run dev"
volumes:
- ./src:/app/src
- ./public:/app/public
- ./styles:/app/styles
networks:
- weather-frontend
restart: unless-stopped
networks:
weather-frontend: {}