synthwave/docker-compose.yml
2024-10-02 13:11:30 +02:00

24 lines
499 B
YAML

version: '3'
services:
synthwave:
build: .
ports:
- "8080:8080"
depends_on:
- mongodb
volumes:
- ./data:/data # Runtime data (optional)
- ./media:/media # Audio files
environment:
- "DB_URI=mongodb://user:pass@mongodb:27017"
- "DB=synthwrld"
mongodb:
image: mongo:latest
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: user
MONGO_INITDB_ROOT_PASSWORD: pass
volumes:
- ./db:/data/db