Docker compose as a systemd unit Create file /etc/systemd/system/docker-compose@.service [Unit] Description=%i service with docker compose Requires=docker.service After=docker.service