Create aquarium.service.sample

Adding a service to automatically start aquarium when running it for multi-user.
pull/98/head
Fafner [_KeyZee_] 2020-10-12 11:57:21 +02:00 committed by GitHub
parent 70dcffe4fa
commit 6fc2d74bbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
[Unit]
Description=aquarium service with docker compose
Requires=docker.service
After=docker.service
[Service]
Type=forking
RemainAfterExit=true
WorkingDirectory=path to the directory where you installed aquarium>
ExecStart=/usr/bin/docker-compose up -d --remove-orphans
ExecStop=/usr/bin/docker-compose down
[Install]
WantedBy=multi-user.target