synthwave/docker-compose.yml
2024-10-04 12:00:33 +02:00

23 lines
525 B
YAML

version: '3'
services:
synthwave:
build: .
ports:
- "8080:8080"
depends_on:
- postgres
volumes:
- ./data:/data # Runtime data (optional)
- ./media:/media # Audio files
environment:
- "DATABASE_URL=postgres://user:pass@postgres/synthwave"
postgres:
image: timescale/timescaledb:latest-pg16
restart: always
volumes:
- ./db:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=synthwave