HUGE REFACTORING; Implementing ldap networks, new port mappings, heal script optimizing etc.

This commit is contained in:
2025-01-30 15:04:23 +01:00
parent 61890dcf1f
commit 4c0aba2eea
79 changed files with 294 additions and 335 deletions

View File

@@ -7,7 +7,7 @@
failed_when: container_action.failed and 'No such container' not in container_action.msg
listen: recreate discourse
- name: "add central database temporary to {{docker_compose_project_name}}_default"
- name: "add central database temporary to {{application_id}}_default"
command:
cmd: "docker network connect discourse_default central-{{ database_type }}"
ignore_errors: true

View File

@@ -12,7 +12,7 @@
- name: "include tasks nginx-docker-proxy-domain.yml"
include_tasks: nginx-docker-proxy-domain.yml
- name: "cleanup central database from {{docker_compose_project_name}}_default network"
- name: "cleanup central database from {{application_id}}_default network"
command:
cmd: "docker network disconnect discourse_default central-{{ database_type }}"
ignore_errors: true
@@ -65,7 +65,7 @@
ignore_errors: true
when: enable_central_database | bool
- name: "remove central database from {{docker_compose_project_name}}_default"
- name: "remove central database from {{application_id}}_default"
command:
cmd: "docker network disconnect discourse_default central-{{ database_type }}"
ignore_errors: true

View File

@@ -67,7 +67,7 @@ env:
DISCOURSE_DB_NAME: {{ database_name }}
# Redis Configuration
DISCOURSE_REDIS_HOST: {{docker_compose_project_name}}-redis
DISCOURSE_REDIS_HOST: {{application_id}}-redis
## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
#LETSENCRYPT_ACCOUNT_EMAIL: administrator@veen.world
@@ -129,5 +129,5 @@ run:
- exec: echo "End of custom commands"
docker_args:
- --network={{docker_compose_project_name}}_default
- --network={{application_id}}_default
- --name={{discourse_application_container}}

View File

@@ -1,5 +1,5 @@
docker_compose_project_name: "discourse"
application_id: "discourse"
discourse_application_container: "discourse_application"
database_password: "{{ baserow_database_password }}"
database_type: "postgres"
discourse_repository_directory: "{{ path_docker_compose_instances + docker_compose_project_name + '/repository/' }}"
discourse_repository_directory: "{{ path_docker_compose_instances + application_id + '/repository/' }}"