cfg/.config/systemd/user/docker-compose.service
Knut Ahlers 18c2bb3223
Move systemd-units to public dotfiles
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-12-12 00:16:30 +01:00

19 lines
537 B
Desktop File

[Unit]
Description=Docker Compose container starter
[Service]
WorkingDirectory=/home/luzifer/.config
Type=oneshot
RemainAfterExit=yes
Environment=DOCKER_HOST=http+unix://var/run/docker.sock
ExecStartPre=/usr/bin/docker-compose pull --quiet --ignore-pull-failures
ExecStart=/usr/bin/docker-compose up -d --remove-orphans
ExecStop=/usr/bin/docker-compose stop
ExecReload=/usr/bin/docker-compose pull --quiet --parallel --ignore-pull-failures
ExecReload=/usr/bin/docker-compose up -d --remove-orphans
[Install]
WantedBy=default.target