rekordbox-viewer/docker-compose.yml
2025-04-24 15:46:10 +02:00

47 lines
953 B
YAML

version: '3.8'
services:
frontend:
build:
context: .
dockerfile: packages/frontend/Dockerfile
ports:
- "8080:80"
environment:
- VITE_API_URL=http://localhost:3001/api
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
backend:
build:
context: .
dockerfile: packages/backend/Dockerfile
ports:
- "3001:3000"
environment:
- MONGODB_URI=mongodb://mongo:27017/rekordbox
- PORT=3000
- NODE_ENV=production
depends_on:
mongo:
condition: service_healthy
restart: unless-stopped
mongo:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
restart: unless-stopped
volumes:
mongodb_data: