anki-sync-server/service/anki-sync-server.service.template

15 lines
286 B
Plaintext

[Unit]
Description=Anki Sync Server
Requires=docker.service
After=docker.service
[Service]
WorkingDirectory={{DIR}}
ExecStart=/usr/local/bin/docker-compose up
ExecStop=/usr/local/bin/docker-compose down
Restart=always
EnvironmentFile={{DIR}}/.env
[Install]
WantedBy=multi-user.target