Implemented helper role docker-central-database and refactored code

This commit is contained in:
2025-02-04 18:14:37 +01:00
parent cb6a42e97d
commit 5503326ea6
91 changed files with 358 additions and 237 deletions

View File

@@ -2,7 +2,7 @@
- name: create docker-compose.yml for bigbluebutton
command:
cmd: bash ./scripts/generate-compose
chdir: "{{docker_compose_instance_directory}}"
chdir: "{{docker_compose.directories.instance}}"
environment:
COMPOSE_HTTP_TIMEOUT: 600
DOCKER_CLIENT_TIMEOUT: 600
@@ -63,7 +63,7 @@
command:
cmd: docker-compose -p bigbluebutton up -d --force-recreate
# Don't use the --build flag here. This leads to bugs
chdir: "{{docker_compose_instance_directory}}"
chdir: "{{docker_compose.directories.instance}}"
environment:
COMPOSE_HTTP_TIMEOUT: 600
DOCKER_CLIENT_TIMEOUT: 600

View File

@@ -27,7 +27,7 @@
- name: pull docker repository
git:
repo: "https://github.com/bigbluebutton/docker.git"
dest: "{{docker_compose_instance_directory}}"
dest: "{{docker_compose.directories.instance}}"
update: yes
recursive: yes
version: main
@@ -35,7 +35,7 @@
ignore_errors: true
- name: deploy .env
template: src=env.j2 dest={{docker_compose_instance_directory}}/.env
template: src=env.j2 dest={{docker_compose.directories.instance}}/.env
notify: setup bigbluebutton
- name: flush docker service
@@ -49,7 +49,7 @@
- name: create admin
command:
cmd: docker compose exec greenlight bundle exec rake admin:create
chdir: "{{docker_compose_instance_directory}}"
chdir: "{{docker_compose.directories.instance}}"
when: mode_setup | bool
ignore_errors: true
register: admin_creation_result

View File

@@ -1,5 +1,5 @@
application_id: "bigbluebutton"
docker_compose_file: "{{docker_compose_instance_directory}}docker-compose.yml"
docker_compose_file: "{{docker_compose.directories.instance}}docker-compose.yml"
database_instance: "bigbluebutton"
database_name: "greenlight-v3"
database_username: "postgres"