systemd docker compose startup helper
![]() |
2 年 前 | |
---|---|---|
conf | 2 年 前 | |
README.md | 2 年 前 | |
container-startup.service | 2 年 前 | |
startup.sh | 2 年 前 |
startup.sh
starts/stops/pulls all containers expected to run on the current host.
The script expects a list of absolut paths to docker-compose.yml files in /opt/docker/startup/conf/$HOSTNAME.
container-startups.service
is a oneshot systemd service which runs startup.sh up
.
To install the service run:
cp container-startups.service /etc/systemd/system/
systemctl enable container-startups.service