infra/roles/common/files/docker-compose@.service

15 lines
313 B
SYSTEMD
Raw Normal View History

2024-01-03 01:03:22 -05:00
[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=true
WorkingDirectory=/etc/docker/compose/%i
ExecStart=/usr/bin/docker compose up -d --remove-orphans
ExecStop=/usr/bin/docker compose down
2024-01-03 01:03:22 -05:00
[Install]
WantedBy=multi-user.target