synthwave/docker-compose.yml

28 lines
611 B
YAML
Raw Normal View History

2024-07-24 11:07:24 +02:00
version: '3'
services:
2024-10-02 13:11:30 +02:00
synthwave:
build: .
ports:
2024-10-04 19:39:51 +02:00
- "8080:8000"
2024-10-02 13:11:30 +02:00
depends_on:
2024-10-04 12:00:33 +02:00
- postgres
2024-10-02 13:11:30 +02:00
volumes:
- ./data:/data # Runtime data (optional)
- ./media:/media # Audio files
environment:
2024-10-04 12:00:33 +02:00
- "DATABASE_URL=postgres://user:pass@postgres/synthwave"
2024-10-04 19:39:51 +02:00
- "RUST_LOG=info"
- "ROCKET_ADDRESS=0.0.0.0"
2024-07-24 11:07:24 +02:00
2024-10-04 12:00:33 +02:00
postgres:
image: timescale/timescaledb:latest-pg16
restart: always
2024-10-04 19:39:51 +02:00
ports:
- 5432:5432
2024-07-24 11:07:24 +02:00
volumes:
2024-10-04 12:00:33 +02:00
- ./db:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=synthwave