scripts to startup all docker containers defined via in docker-compose.yml for a specific host

toastie89 bb24810787 Merge branch 'master' of 2 months ago
.gitignore 85b8cb63b6 removed hostname 9 months ago aace2ee4bc added start and satus for the service 3 months ago
container-startup.service e150e6b04a renamed startup service 9 months ago db944755d8 initial 2 months ago
services.conf.template 85b8cb63b6 removed hostname 9 months ago 85b8cb63b6 removed hostname 9 months ago

Docker startup helper scripts runs docker compose for a list of services to bring containers up/down or to pull images. The services must be defined as absolute paths to docker-compose.yml files in /opt/docker/startup/services.conf.

container-startup.service is a one-shot systemd service which runs up after boot as soon as the docker service is ready. Stop and restart are explicitly not part of the service, as those actions are handled by the docker daemon.

To install the service run:

cp services.conf.template services.conf
# add absolute paths to your docker-compose.yml files
cp container-startup.service /etc/systemd/system/
systemctl enable container-startup.service
systemctl start  container-startup.service
systemctl status container-startup.service