Refactored and optimized code for taiga

This commit is contained in:
Kevin Veen-Birkenbach 2024-05-26 22:49:31 +02:00
parent ac902b67a5
commit 27b2238167
10 changed files with 9 additions and 16 deletions

View File

@ -1,5 +1,4 @@
docker_compose_project_name: "akaunting" docker_compose_project_name: "akaunting"
docker_compose_file_path: "{{docker_compose_instance_directory}}docker-compose.yml"
database_type: "mariadb" database_type: "mariadb"
database_password: "{{akaunting_database_password}}" database_password: "{{akaunting_database_password}}"
repository_address: "https://github.com/akaunting/docker.git" repository_address: "https://github.com/akaunting/docker.git"

View File

@ -1,6 +1,5 @@
--- ---
docker_compose_project_name: "attendize" docker_compose_project_name: "attendize"
docker_compose_file_path: "{{docker_compose_instance_directory}}docker-compose.yml"
mail_interface_domain: "mail.{{domain}}" mail_interface_domain: "mail.{{domain}}"
database_type: "mariadb" database_type: "mariadb"
database_password: "{{attendize_database_password}}" database_password: "{{attendize_database_password}}"

View File

@ -1,7 +1,6 @@
docker_compose_project_name: "openproject" docker_compose_project_name: "openproject"
repository_directory: "{{ path_docker_compose_instances }}{{docker_compose_project_name}}/" repository_directory: "{{ path_docker_compose_instances }}{{docker_compose_project_name}}/"
docker_compose_instance_directory: "{{repository_directory}}compose/" docker_compose_instance_directory: "{{repository_directory}}compose/"
docker_compose_file_path: "{{docker_compose_instance_directory}}docker-compose.yml"
database_password: "{{openproject_database_password}}" database_password: "{{openproject_database_password}}"
repository_address: "https://github.com/opf/openproject-deploy" repository_address: "https://github.com/opf/openproject-deploy"
database_type: "postgres" database_type: "postgres"

View File

@ -11,4 +11,4 @@
detached_files: detached_files:
- .env - .env
- docker-compose.yml - docker-compose.yml
- docker-compose-init.yml - docker-compose-inits.yml

View File

@ -5,7 +5,7 @@ SUBPATH="" # it'll be appended to the TAIGA_DOMAIN (use either "" or a "/subpath
WEBSOCKETS_SCHEME=wss # events connection protocol (use either "ws" or "wss") WEBSOCKETS_SCHEME=wss # events connection protocol (use either "ws" or "wss")
# Taiga's Secret Key - Variable to provide cryptographic signing # Taiga's Secret Key - Variable to provide cryptographic signing
SECRET_KEY="{{taigaio_secret_key}}" # Please, change it to an unpredictable value!! SECRET_KEY="{{taiga_secret_key}}" # Please, change it to an unpredictable value!!
# Taiga's Database settings - Variables to create the Taiga database and connect to it # Taiga's Database settings - Variables to create the Taiga database and connect to it
POSTGRES_USER={{database_username}} # user to connect to PostgreSQL POSTGRES_USER={{database_username}} # user to connect to PostgreSQL

View File

@ -1,5 +1,3 @@
version: "3.5"
x-environment: x-environment:
&default-back-environment &default-back-environment
POSTGRES_DB: "{{database_name}}" POSTGRES_DB: "{{database_name}}"
@ -35,8 +33,9 @@ services:
image: taigaio/taiga-back:latest image: taigaio/taiga-back:latest
environment: *default-back-environment environment: *default-back-environment
{% include 'templates/docker/container/depends-on-just-database.yml.j2' %} {% include 'templates/docker/container/depends-on-just-database.yml.j2' %}
{% include 'templates/docker/container/networks.yml.j2' %}
entrypoint: "python manage.py" entrypoint: "python manage.py"
volumes: *default-back-volumes volumes: *default-back-volumes
{% include 'templates/docker/compose/networks.yml.j2' %} {% include 'templates/docker/compose/networks.yml.j2' %}
taiga: taiga:

View File

@ -1,5 +1,3 @@
version: "3.5"
x-environment: x-environment:
&default-back-environment &default-back-environment
# These environment variables will be used by taiga-back and taiga-async. # These environment variables will be used by taiga-back and taiga-async.
@ -154,4 +152,4 @@ services:
events-rabbitmq-data: events-rabbitmq-data:
{% include 'templates/docker/compose/networks.yml.j2' %} {% include 'templates/docker/compose/networks.yml.j2' %}
taiga: taiga:

View File

@ -1,5 +1,4 @@
docker_compose_project_name: "taigaio" docker_compose_project_name: "taiga"
docker_compose_file_path: "{{docker_compose_instance_directory}}docker-compose.yml"
database_type: "postgres" database_type: "postgres"
database_password: "{{taigaio_database_password}}" database_password: "{{taiga_database_password}}"
repository_address: "https://github.com/taigaio/taiga-docker" repository_address: "https://github.com/taigaio/taiga-docker"

View File

@ -2,4 +2,4 @@
include_tasks: update-repository-with-files.yml include_tasks: update-repository-with-files.yml
vars: vars:
detached_files: detached_files:
- "{{docker_compose_file_path}}" - "docker-compose.yml"

View File

@ -16,7 +16,7 @@
- name: pull docker repository - name: pull docker repository
git: git:
repo: "{{ repository_address }}" repo: "{{ repository_address }}"
dest: "{{ repository_directory }}" dest: "{{ repository_directory | default(docker_compose_instance_directory) }}"
update: yes update: yes
notify: docker compose project setup notify: docker compose project setup
become: true become: true