2021-07-16 12:38:15 +02:00
|
|
|
## mgrote.docker-compose-deploy
|
|
|
|
|
|
|
|
### Beschreibung
|
2021-08-04 09:49:03 +02:00
|
|
|
Klont Repositories und startet die darin enthaltenen `docker-compose`-Projekte.
|
|
|
|
Die `docker-compose.yml` muss im Repository-Root liegen.
|
2021-07-16 12:38:15 +02:00
|
|
|
|
|
|
|
### Getestet auf
|
|
|
|
- [x] Ubuntu (>=20.04)
|
|
|
|
|
|
|
|
### Variablen + Defaults
|
2021-07-20 10:14:07 +02:00
|
|
|
```
|
|
|
|
# Directory where all Repos get saved
|
|
|
|
docker_compose_base_dir: /home/mg/docker
|
|
|
|
|
|
|
|
# Dictionary of Repositories
|
|
|
|
docker_compose_projects:
|
2021-08-09 08:36:44 +02:00
|
|
|
- name: homer # Name of Project, is also the dir_name if it isn't set
|
2021-07-20 10:14:07 +02:00
|
|
|
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?
|
2021-07-20 10:27:33 +02:00
|
|
|
git_branch: master # branch to checkout; optional; just dont let it empty, remove it
|
2021-10-22 15:58:27 +02:00
|
|
|
os_username: mg # user who should get permissions on the directory
|
2021-07-20 10:14:07 +02:00
|
|
|
```
|
2021-07-16 12:38:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
### Benötigt
|
|
|
|
- `geerlingguy.docker`
|