Solved network bug

This commit is contained in:
Kevin Veen-Birkenbach 2024-01-20 15:19:02 +01:00
parent cfa299410a
commit 42f4cf1867
4 changed files with 13 additions and 6 deletions

View File

@ -1,5 +1,5 @@
--- ---
- name: recreate discourse - name: recreate discourse
command: command:
cmd: ./launcher rebuild discourse_application cmd: "./launcher rebuild {{discourse_application_container}}"
chdir: "{{discourse_repository_directory}}" chdir: "{{discourse_repository_directory}}"

View File

@ -64,6 +64,12 @@
- name: flush, to recreate discourse app - name: flush, to recreate discourse app
meta: flush_handlers meta: flush_handlers
- name: "add {{discourse_application_container}} to network central_postgres"
command:
cmd: "docker network connect central_postgres {{discourse_application_container}}"
ignore_errors: true
when: enable_central_database | bool
- name: "remove central database from {{docker_compose_project_name}}_default" - name: "remove central database from {{docker_compose_project_name}}_default"
command: command:
cmd: "docker network disconnect discourse_default central-{{ database_type }}" cmd: "docker network disconnect discourse_default central-{{ database_type }}"

View File

@ -119,4 +119,4 @@ run:
docker_args: docker_args:
- --network={{docker_compose_project_name}}_default - --network={{docker_compose_project_name}}_default
- --name=discourse_application - --name={{discourse_application_container}}

View File

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