systemd docker compose startup helper

toastie89 db944755d8 initial vor 2 Jahren
.gitignore 85b8cb63b6 removed hostname vor 2 Jahren
README.md 85b8cb63b6 removed hostname vor 2 Jahren
container-startup.service e150e6b04a renamed startup service vor 2 Jahren
get-volume-sizes.sh db944755d8 initial vor 2 Jahren
services.conf.template 85b8cb63b6 removed hostname vor 2 Jahren
startup.sh 85b8cb63b6 removed hostname vor 2 Jahren

README.md

Docker startup helper scripts

startup.sh runs docker compose for a list of services to bring containers up/down or pulls 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 startup.sh up after boot. 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 services.conf.template
# add absolute paths to your docker-compose.yml files
vi .env
cp container-startup.service /etc/systemd/system/
systemctl enable container-startup.service