ansible-role-swarm/files/docker-compose.service

13 lines
336 B
SYSTEMD
Raw Normal View History

2018-12-22 13:55:51 +00:00
[Unit]
Description= Docker compose for %i
After=network.target docker.service
[Service]
Type=simple
ExecStart=/usr/bin/docker-compose -f /etc/docker/compose/%i/docker-compose.yml up
ExecReload=/usr/bin/docker-compose -f /etc/docker/compose/%i/docker-compose.yml up --no-recreate -d
Restart=always
2018-12-22 13:55:51 +00:00
[Install]
WantedBy=multi-user.target