Refactored taiga

This commit is contained in:
Kevin Veen-Birkenbach 2024-05-26 21:20:50 +02:00
parent 06537dfe9a
commit 0e45294efa
3 changed files with 23 additions and 27 deletions

View File

@ -12,7 +12,3 @@
- .env - .env
- docker-compose.yml - docker-compose.yml
- docker-compose-init.yml - docker-compose-init.yml
- name: configure run.env
template: src=env.j2 dest={{docker_compose_instance_directory}}/.env
notify: docker compose project setup

View File

@ -26,8 +26,8 @@ x-environment:
x-volumes: x-volumes:
&default-back-volumes &default-back-volumes
- taiga-static-data:/taiga-back/static - static-data:/taiga-back/static
- taiga-media-data:/taiga-back/media - media-data:/taiga-back/media
# - ./config.py:/taiga-back/settings/config.py # - ./config.py:/taiga-back/settings/config.py
services: services:

View File

@ -33,13 +33,13 @@ x-environment:
x-volumes: x-volumes:
&default-back-volumes &default-back-volumes
# These volumens will be used by taiga-back and taiga-async. # These volumens will be used by taiga-back and taiga-async.
- taiga-static-data:/taiga-back/static - static-data:/taiga-back/static
- taiga-media-data:/taiga-back/media - media-data:/taiga-back/media
# - ./config.py:/taiga-back/settings/config.py # - ./config.py:/taiga-back/settings/config.py
services: services:
{% include 'templates/docker/services/' + database_type + '.yml.j2' %} {% include 'templates/docker/services/' + database_type + '.yml.j2' %}
taiga-back: back:
image: taigaio/taiga-back:latest image: taigaio/taiga-back:latest
environment: *default-back-environment environment: *default-back-environment
volumes: *default-back-volumes volumes: *default-back-volumes
@ -48,7 +48,7 @@ services:
taiga: taiga:
{% include 'templates/docker/container/depends-on-also-database.yml.j2' %} {% include 'templates/docker/container/depends-on-also-database.yml.j2' %}
taiga-events-rabbitmq: events-rabbitmq:
condition: service_started condition: service_started
taiga-async-rabbitmq: taiga-async-rabbitmq:
condition: service_started condition: service_started
@ -63,7 +63,7 @@ services:
taiga: taiga:
{% include 'templates/docker/container/depends-on-also-database.yml.j2' %} {% include 'templates/docker/container/depends-on-also-database.yml.j2' %}
taiga-events-rabbitmq: events-rabbitmq:
condition: service_started condition: service_started
taiga-async-rabbitmq: taiga-async-rabbitmq:
condition: service_started condition: service_started
@ -77,12 +77,12 @@ services:
RABBITMQ_DEFAULT_VHOST: "${RABBITMQ_VHOST}" RABBITMQ_DEFAULT_VHOST: "${RABBITMQ_VHOST}"
hostname: "taiga-async-rabbitmq" hostname: "taiga-async-rabbitmq"
volumes: volumes:
- taiga-async-rabbitmq-data:/var/lib/rabbitmq - async-rabbitmq-data:/var/lib/rabbitmq
{% include 'templates/docker/container/networks.yml.j2' %} {% include 'templates/docker/container/networks.yml.j2' %}
taiga: taiga:
taiga-front: front:
image: taigaio/taiga-front:latest image: taigaio/taiga-front:latest
environment: environment:
TAIGA_URL: "${TAIGA_SCHEME}://${TAIGA_DOMAIN}" TAIGA_URL: "${TAIGA_SCHEME}://${TAIGA_DOMAIN}"
@ -95,7 +95,7 @@ services:
# volumes: # volumes:
# - ./conf.json:/usr/share/nginx/html/conf.json # - ./conf.json:/usr/share/nginx/html/conf.json
taiga-events: events:
image: taigaio/taiga-events:latest image: taigaio/taiga-events:latest
environment: environment:
RABBITMQ_USER: "${RABBITMQ_USER}" RABBITMQ_USER: "${RABBITMQ_USER}"
@ -105,19 +105,19 @@ services:
{% include 'templates/docker/container/networks.yml.j2' %} {% include 'templates/docker/container/networks.yml.j2' %}
taiga: taiga:
depends_on: depends_on:
taiga-events-rabbitmq: events-rabbitmq:
condition: service_started condition: service_started
taiga-events-rabbitmq: events-rabbitmq:
image: rabbitmq:3.8-management-alpine image: rabbitmq:3.8-management-alpine
environment: environment:
RABBITMQ_ERLANG_COOKIE: "${RABBITMQ_ERLANG_COOKIE}" RABBITMQ_ERLANG_COOKIE: "${RABBITMQ_ERLANG_COOKIE}"
RABBITMQ_DEFAULT_USER: "${RABBITMQ_USER}" RABBITMQ_DEFAULT_USER: "${RABBITMQ_USER}"
RABBITMQ_DEFAULT_PASS: "${RABBITMQ_PASS}" RABBITMQ_DEFAULT_PASS: "${RABBITMQ_PASS}"
RABBITMQ_DEFAULT_VHOST: "${RABBITMQ_VHOST}" RABBITMQ_DEFAULT_VHOST: "${RABBITMQ_VHOST}"
hostname: "taiga-events-rabbitmq" hostname: "events-rabbitmq"
volumes: volumes:
- taiga-events-rabbitmq-data:/var/lib/rabbitmq - events-rabbitmq-data:/var/lib/rabbitmq
{% include 'templates/docker/container/networks.yml.j2' %} {% include 'templates/docker/container/networks.yml.j2' %}
taiga: taiga:
@ -137,21 +137,21 @@ services:
- "9000:80" - "9000:80"
volumes: volumes:
- ./taiga-gateway/taiga.conf:/etc/nginx/conf.d/default.conf - ./taiga-gateway/taiga.conf:/etc/nginx/conf.d/default.conf
- taiga-static-data:/taiga/static - static-data:/taiga/static
- taiga-media-data:/taiga/media - media-data:/taiga/media
{% include 'templates/docker/container/networks.yml.j2' %} {% include 'templates/docker/container/networks.yml.j2' %}
taiga: taiga:
depends_on: depends_on:
- taiga-front - front
- taiga-back - back
- taiga-events - events
{% include 'templates/docker/compose/volumes.yml.j2' %} {% include 'templates/docker/compose/volumes.yml.j2' %}
taiga-static-data: static-data:
taiga-media-data: media-data:
taiga-async-rabbitmq-data: async-rabbitmq-data:
taiga-events-rabbitmq-data: events-rabbitmq-data:
{% include 'templates/docker/compose/networks.yml.j2' %} {% include 'templates/docker/compose/networks.yml.j2' %}
taiga: taiga: