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
command:
cmd: ./launcher rebuild discourse_application
cmd: "./launcher rebuild {{discourse_application_container}}"
chdir: "{{discourse_repository_directory}}"

View File

@ -64,6 +64,12 @@
- name: flush, to recreate discourse app
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"
command:
cmd: "docker network disconnect discourse_default central-{{ database_type }}"

View File

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

View File

@ -1,4 +1,5 @@
docker_compose_project_name: "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/' }}"