This commit is contained in:
+9
-8
@@ -1,15 +1,16 @@
|
||||
[Unit]
|
||||
Description=Muzick Music Player
|
||||
After=network.target
|
||||
Description=Muzick Music Player (Docker Compose)
|
||||
After=docker.service network.target
|
||||
Requires=docker.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
User=kami
|
||||
WorkingDirectory=/home/kami/apps/muzick/backend
|
||||
Environment=MUZICK_PROXY=socks5://127.0.0.1:10808
|
||||
ExecStart=/home/kami/apps/muzick/backend/venv/bin/uvicorn main:app --host 0.0.0.0 --port 5213
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
WorkingDirectory=/home/kami/apps/muzick
|
||||
ExecStart=/usr/bin/docker compose up -d
|
||||
ExecStop=/usr/bin/docker compose down
|
||||
Environment=COMPOSE_FILE=/home/kami/apps/muzick/docker-compose.yml
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user