30 lines
624 B
YAML
30 lines
624 B
YAML
|
|
services:
|
||
|
|
nginx:
|
||
|
|
image: nginx:alpine
|
||
|
|
container_name: spotlightcam-nginx
|
||
|
|
ports:
|
||
|
|
- "8080:80"
|
||
|
|
volumes:
|
||
|
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||
|
|
- ./nginx/conf.d:/etc/nginx/conf.d:ro
|
||
|
|
depends_on:
|
||
|
|
- frontend
|
||
|
|
restart: unless-stopped
|
||
|
|
|
||
|
|
frontend:
|
||
|
|
build:
|
||
|
|
context: ./frontend
|
||
|
|
dockerfile: Dockerfile
|
||
|
|
container_name: spotlightcam-frontend
|
||
|
|
expose:
|
||
|
|
- "5173"
|
||
|
|
volumes:
|
||
|
|
- ./frontend:/app
|
||
|
|
- /app/node_modules
|
||
|
|
environment:
|
||
|
|
- NODE_ENV=development
|
||
|
|
- VITE_HOST=0.0.0.0
|
||
|
|
stdin_open: true
|
||
|
|
tty: true
|
||
|
|
command: npm run dev
|