Refactored docker rroles dto use new role docker-compose

This commit is contained in:
2023-12-30 16:49:37 +01:00
parent f70a7690a8
commit 3fa052f71d
79 changed files with 161 additions and 300 deletions

View File

@@ -1,11 +1,4 @@
---
- name: recreate mailu
command:
cmd: docker-compose -p mailu up -d --force-recreate
chdir: "{{docker_compose_instance_directory}}"
environment:
COMPOSE_HTTP_TIMEOUT: 900
DOCKER_CLIENT_TIMEOUT: 900
- name: "restart deploy-letsencrypt-mailu.service"
systemd:
name: deploy-letsencrypt-mailu.service

View File

@@ -1,3 +1,3 @@
dependencies:
- nginx-docker-reverse-proxy
- docker-compose
- systemd-notifier

View File

@@ -32,13 +32,13 @@
template:
src: "docker-compose.yml.j2"
dest: "{{docker_compose_instance_directory}}docker-compose.yml"
notify: recreate mailu
notify: docker compose project setup
- name: add mailu.env
template:
src: "mailu.env.j2"
dest: "{{docker_compose_instance_directory}}mailu.env"
notify: recreate mailu
notify: docker compose project setup
- name: add deploy-letsencrypt-mailu.sh
template:

View File

@@ -1,6 +1,6 @@
docker_compose_instance_directory: "{{path_docker_compose_instances}}mailu/"
database_instance: "mailu"
database_host: "database"
database_databasename: "{{database_instance}}"
database_username: "{{database_instance}}"
database_password: "{{mailu_database_password}}"
docker_compose_project_name: "mailu"
docker_compose_instance_directory: "{{path_docker_compose_instances}}{{docker_compose_project_name}}/"
database_host: "database"
database_databasename: "{{docker_compose_project_name}}"
database_username: "{{docker_compose_project_name}}"
database_password: "{{mailu_database_password}}"