mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
HUGE REFACTORING; Implementing ldap networks, new port mappings, heal script optimizing etc.
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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}}
|
||||
|
@@ -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/' }}"
|
Reference in New Issue
Block a user