systemd docker compose startup helper
|
|
vor 3 Jahren | |
|---|---|---|
| conf | vor 3 Jahren | |
| README.md | vor 3 Jahren | |
| container-startup.service | vor 3 Jahren | |
| startup.sh | vor 3 Jahren |
startup.sh starts/stops/pulls all containers expected to run on a docker 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 after boot. Stop/restart are explicitely not part of the service as those actions are handled by the docker daemon.
To install the service run:
cp container-startup.service /etc/systemd/system/
systemctl enable container-startup.service