[Unit]
Description=Whisper transcription service (Speaches / faster-whisper)
Wants=docker.service network-online.target
After=docker.service network-online.target

[Service]
Type=simple
WorkingDirectory=/opt/whisper
ExecStart=/usr/bin/docker compose --file /opt/whisper/docker-compose.yml up
ExecStop=/usr/bin/docker compose --file /opt/whisper/docker-compose.yml down
Restart=on-failure
RestartSec=10
TimeoutStartSec=600

[Install]
WantedBy=multi-user.target
