synthwave/docker-compose.yml

28 lines
611 B
YAML
Raw Normal View History

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