Go to file
Clemens Klug 52409ee52e Fix #4: Sort by priority label 2019-04-09 18:43:18 +02:00
Readme.md add note about commenting 2019-04-09 10:07:06 +02:00
discover.py Fix #4: Sort by priority label 2019-04-09 18:43:18 +02:00
sample.json Initialer Commit 2018-04-24 10:04:37 +02:00
sample.lst add bash script (raw only) 2019-04-04 15:17:55 +02:00
start.py add reading from stdin 2019-04-05 14:35:17 +02:00
start.sh add bash script (raw only) 2019-04-04 15:17:55 +02:00

Readme.md

Usage

autodiscover

usage: python3 discover.py [-a <action>] [-l] service_dir [service_dir …]

add label "de.wie-ei.autostart=true" to any service in a docker-compose-file

!! This label is discovered as string, not by parsing Yaml. Commenting will not work!

Examples:

  • start services (up -d) python3 discover.py /srv/services/ /opt/docker/testing/
  • which services are configured for autostart? python3 discover.py -l /srv/services/ /opt/docker/testing/
  • check status python3 discover.py -a ps /opt/docker/testing/
  • stop services python3 discover.py -a "down -v /srv/testing/

manual config

json config

  • create config.json from sample.json
  • add python3 /opt/docker-autostart/start.py /path/to/your/config.json -t json to /etc/rc.local

raw config

  • create config.lst from sample.lst
  • add python3 /opt/docker-autostart/start.py /path/to/your/config.lst to /etc/rc.local

other actions

  • default action: up -d
  • add argument -a ""