cfg/.config/systemd/user/docker-compose.service

20 lines
537 B
SYSTEMD
Raw Normal View History

[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