3 Commits 20443dda32 ... a250a73ece

Author SHA1 Message Date
  toastie89 a250a73ece moved conf in sub dir 2 months ago
  toastie89 e150e6b04a renamed startup service 2 months ago
  toastie89 67fe8a289f added example 2 months ago
5 changed files with 10 additions and 6 deletions
  1. 4 4
      README.md
  2. 1 1
      conf/.gitignore
  3. 4 0
      conf/docker.example.com
  4. 0 0
      container-startup.service
  5. 1 1
      startup.sh

+ 4 - 4
README.md

@@ -1,11 +1,11 @@
 # Docker startup helper scripts 
 
 `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/$HOSTNAME.
+The script expects a list of absolut paths to docker-compose.yml files in /opt/docker/startup/conf/$HOSTNAME.
 
-`startup-containers.service` is a oneshot systemd service which runs `startup.sh up`.
+`container-startups.service` is a oneshot systemd service which runs `startup.sh up`.
 To install the service run:
 ```
-cp startup-containers.service /etc/systemd/system/
-systemctl enable startup-containers.service
+cp container-startups.service /etc/systemd/system/
+systemctl enable container-startups.service
 ```

+ 1 - 1
conf/.gitignore

@@ -1,3 +1,3 @@
 *
 !.gitignore
-!docker.examlpe.com
+!docker.example.com

+ 4 - 0
conf/docker.example.com

@@ -0,0 +1,4 @@
+services="
+  /opt/docker/reverse-proxy
+  /opt/docker/ejabberd
+"

startup-containers.service → container-startup.service


+ 1 - 1
startup.sh

@@ -2,7 +2,7 @@
 
 if [ -f /opt/docker/startup/$HOSTNAME ]; then echo "OK: Container list found"; else echo "NOK: No container list found" && exit 1; fi
 
-source /opt/docker/startup/$HOSTNAME
+source /opt/docker/startup/conf/$HOSTNAME
 
 up() {
 for service in $services