add shortcuts and docker service

This commit is contained in:
Tim
2020-07-28 10:57:43 +02:00
parent e13b468a59
commit 9774fe4548
2 changed files with 28 additions and 1 deletions

18
lt-docker-app.service Normal file
View File

@ -0,0 +1,18 @@
# /etc/systemd/system/lt-docker-app.service
[Unit]
Description=Lets Talk Docker Service
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/home/ardent/LetsTalk/projects/devdocker
ExecStart=/usr/bin/docker-compose up -d
ExecStop=/usr/bin/docker-compose down
TimeoutStartSec=0
User=ardent
[Install]
WantedBy=multi-user.target