2021-03-19 15:40:59 +01:00
|
|
|
# /etc/systemd/system/bla-docker-app.service
|
2020-07-28 10:57:43 +02:00
|
|
|
|
|
|
|
[Unit]
|
2021-03-19 15:40:59 +01:00
|
|
|
Description=Bla Docker Service
|
2020-07-28 10:57:43 +02:00
|
|
|
Requires=docker.service
|
|
|
|
After=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
2021-03-19 15:40:59 +01:00
|
|
|
WorkingDirectory=/home/tim/projects/devdocker
|
2020-07-28 10:57:43 +02:00
|
|
|
ExecStart=/usr/bin/docker-compose up -d
|
|
|
|
ExecStop=/usr/bin/docker-compose down
|
|
|
|
TimeoutStartSec=0
|
2021-03-19 15:40:59 +01:00
|
|
|
User=tim
|
2020-07-28 10:57:43 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|