2025-11-12 17:50:44 +01:00
|
|
|
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
|
2025-11-12 21:42:52 +01:00
|
|
|
- backend
|
2025-11-12 17:50:44 +01:00
|
|
|
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
|
2025-11-12 21:42:52 +01:00
|
|
|
|
|
|
|
|
backend:
|
|
|
|
|
build:
|
|
|
|
|
context: ./backend
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
container_name: spotlightcam-backend
|
|
|
|
|
expose:
|
|
|
|
|
- "3000"
|
|
|
|
|
volumes:
|
|
|
|
|
- ./backend:/app
|
|
|
|
|
- /app/node_modules
|
|
|
|
|
environment:
|
|
|
|
|
- NODE_ENV=development
|
|
|
|
|
- PORT=3000
|
|
|
|
|
- CORS_ORIGIN=http://localhost:8080
|
|
|
|
|
restart: unless-stopped
|