2023-08-27 17:39:08 -04:00
|
|
|
[Unit]
|
|
|
|
Description=Services manager with docker-compose
|
|
|
|
Requires=docker.service
|
|
|
|
After=docker.service
|
|
|
|
|
|
|
|
[Service]
|
2023-08-27 20:33:18 -04:00
|
|
|
User=docker
|
|
|
|
Group=docker
|
2023-08-27 17:39:08 -04:00
|
|
|
WorkingDirectory={{ docker_compose_dir }}
|
|
|
|
ExecStartPre=-/usr/bin/docker compose pull
|
|
|
|
ExecStart=/usr/bin/docker compose up --remove-orphans
|
|
|
|
ExecStop=/usr/bin/docker compose down
|
|
|
|
ExecReload=/usr/bin/docker compose pull
|
|
|
|
ExecReload=/usr/bin/docker compose up --remove-orphans
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|