mirror of
https://github.com/wahyd4/you-music.git
synced 2026-08-08 20:59:47 +10:00
First version works!
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
youmusic:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
- ./backend:/app/backend
|
||||
environment:
|
||||
- DATABASE_URL=sqlite+aiosqlite:////app/data/youmusic.db
|
||||
- MUSIC_DIR=/app/data/music
|
||||
- UPLOAD_DIR=/app/data/uploads
|
||||
- TEMP_DIR=/app/data/temp
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
Reference in New Issue
Block a user