mg
7ce808198e
bugfix no log base dir set fact state vars state Doku tasks unnütze kennwörter entfernt nutzer optional dir_name darf empty sein erstelle docker-networks Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#166 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net> |
||
---|---|---|
.. | ||
meta | ||
tasks | ||
README.md |
mgrote.docker-compose-deploy
Beschreibung
Klont Repositories und startet dir darin enthaltenen docker-compose
-Projekte.
Abhängigkeiten werden nicht aufgelöst, z.B. fehlende Netze(docker network create nw_proxy_traefik
)
Die docker-compose.yml
mit im Repository-Root liegen.
Getestet auf
- Ubuntu (>=20.04)
Variablen + Defaults
# Directory where all Repos get saved
docker_compose_base_dir: /home/mg/docker
# Dictionary of Repositories
docker_compose_projects:
- name: homer # Name of Project, is alo the dir_name if it isn't set
dir_name: docker-homer # Directory-Name where the repo is saved; optional; just dont let it empty, remove it
repository_url: git.mgrote.net/mg/docker-homer.git # URL to repository, WITHOUT protocol; only https supported
repository_user: mg # git user for login on private Repositories; optional; just dont let it empty, remove it
repository_user_password: k1BvXXXXXXXrbg # git user password for login on private Repositories; optional; just dont let it empty, remove it
network_name: homer-network # docker-network to create; optional; just dont let it empty, remove it
state: present|absent # should the project be present or absent?
Benötigt
geerlingguy.docker