forked from Vansmak/beetiful
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-example.yml
More file actions
34 lines (32 loc) · 880 Bytes
/
docker-compose-example.yml
File metadata and controls
34 lines (32 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: '3.8'
services:
beetiful:
build:
context: .
dockerfile: Dockerfile
container_name: beetiful
ports:
- "3000:5000" # Map host port 3000 to container port 5000
volumes:
# Mount your music library (adjust the host path as needed)
- /path/to/your/music:/music:ro # Read-only access to music files
# Mount beets config directory (persistent storage)
- ./config:/config
# Optional: Mount a directory for beets database and state
- beetiful_data:/app/instance
environment:
- BEETSDIR=/config
- LIBRARY_PATH=/music
- FLASK_PORT=5000
- FLASK_ENV=production
restart: unless-stopped
# Optional: Add resource limits
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 256M
volumes:
beetiful_data:
driver: local