systemd docker compose startup helper
|
|
3 years ago | |
|---|---|---|
| conf | 3 years ago | |
| README.md | 3 years ago | |
| container-startup.service | 3 years ago | |
| startup.sh | 3 years ago |
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-startup.service is a oneshot systemd service which runs startup.sh up.
To install the service run:
cp container-startup.service /etc/systemd/system/
systemctl enable container-startup.service