Solved taiga container naming bug and added logging and restart policies

This commit is contained in:
Kevin Veen-Birkenbach 2024-05-27 01:05:43 +02:00
parent 9121c16ab3
commit 3c1133b2d1

View File

@ -38,6 +38,9 @@ x-volumes:
services: services:
{% include 'templates/docker/services/' + database_type + '.yml.j2' %} {% include 'templates/docker/services/' + database_type + '.yml.j2' %}
taiga-back: taiga-back:
restart: {{docker_restart_policy}}
logging:
driver: journald
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
@ -46,12 +49,15 @@ services:
taiga: taiga:
{% include 'templates/docker/container/depends-on-also-database.yml.j2' %} {% include 'templates/docker/container/depends-on-also-database.yml.j2' %}
events-rabbitmq: taiga-events-rabbitmq:
condition: service_started condition: service_started
taiga-async-rabbitmq: taiga-async-rabbitmq:
condition: service_started condition: service_started
taiga-async: taiga-async:
restart: {{docker_restart_policy}}
logging:
driver: journald
image: taigaio/taiga-back:latest image: taigaio/taiga-back:latest
entrypoint: ["/taiga-back/docker/async_entrypoint.sh"] entrypoint: ["/taiga-back/docker/async_entrypoint.sh"]
environment: *default-back-environment environment: *default-back-environment
@ -61,7 +67,7 @@ services:
taiga: taiga:
{% include 'templates/docker/container/depends-on-also-database.yml.j2' %} {% include 'templates/docker/container/depends-on-also-database.yml.j2' %}
events-rabbitmq: taiga-events-rabbitmq:
condition: service_started condition: service_started
taiga-async-rabbitmq: taiga-async-rabbitmq:
condition: service_started condition: service_started
@ -76,6 +82,9 @@ services:
hostname: "taiga-async-rabbitmq" hostname: "taiga-async-rabbitmq"
volumes: volumes:
- async-rabbitmq-data:/var/lib/rabbitmq - async-rabbitmq-data:/var/lib/rabbitmq
restart: {{docker_restart_policy}}
logging:
driver: journald
{% include 'templates/docker/container/networks.yml.j2' %} {% include 'templates/docker/container/networks.yml.j2' %}
taiga: taiga:
@ -87,6 +96,9 @@ services:
TAIGA_WEBSOCKETS_URL: "${WEBSOCKETS_SCHEME}://${TAIGA_DOMAIN}" TAIGA_WEBSOCKETS_URL: "${WEBSOCKETS_SCHEME}://${TAIGA_DOMAIN}"
TAIGA_SUBPATH: "${SUBPATH}" TAIGA_SUBPATH: "${SUBPATH}"
# ...your customizations go here # ...your customizations go here
restart: {{docker_restart_policy}}
logging:
driver: journald
{% include 'templates/docker/container/networks.yml.j2' %} {% include 'templates/docker/container/networks.yml.j2' %}
taiga: taiga:
@ -99,14 +111,17 @@ services:
RABBITMQ_USER: "${RABBITMQ_USER}" RABBITMQ_USER: "${RABBITMQ_USER}"
RABBITMQ_PASS: "${RABBITMQ_PASS}" RABBITMQ_PASS: "${RABBITMQ_PASS}"
TAIGA_SECRET_KEY: "${SECRET_KEY}" TAIGA_SECRET_KEY: "${SECRET_KEY}"
restart: {{docker_restart_policy}}
logging:
driver: journald
{% include 'templates/docker/container/networks.yml.j2' %} {% include 'templates/docker/container/networks.yml.j2' %}
taiga: taiga:
depends_on: depends_on:
events-rabbitmq: taiga-events-rabbitmq:
condition: service_started condition: service_started
events-rabbitmq: taiga-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}"
@ -116,6 +131,9 @@ services:
hostname: "events-rabbitmq" hostname: "events-rabbitmq"
volumes: volumes:
- events-rabbitmq-data:/var/lib/rabbitmq - events-rabbitmq-data:/var/lib/rabbitmq
restart: {{docker_restart_policy}}
logging:
driver: journald
{% include 'templates/docker/container/networks.yml.j2' %} {% include 'templates/docker/container/networks.yml.j2' %}
taiga: taiga:
@ -125,6 +143,9 @@ services:
environment: environment:
MAX_AGE: "${ATTACHMENTS_MAX_AGE}" MAX_AGE: "${ATTACHMENTS_MAX_AGE}"
SECRET_KEY: "${SECRET_KEY}" SECRET_KEY: "${SECRET_KEY}"
restart: {{docker_restart_policy}}
logging:
driver: journald
{% include 'templates/docker/container/networks.yml.j2' %} {% include 'templates/docker/container/networks.yml.j2' %}
taiga: taiga:
@ -137,6 +158,9 @@ services:
- ./taiga-gateway/taiga.conf:/etc/nginx/conf.d/default.conf - ./taiga-gateway/taiga.conf:/etc/nginx/conf.d/default.conf
- static-data:/taiga/static - static-data:/taiga/static
- media-data:/taiga/media - media-data:/taiga/media
restart: {{docker_restart_policy}}
logging:
driver: journald
{% include 'templates/docker/container/networks.yml.j2' %} {% include 'templates/docker/container/networks.yml.j2' %}
taiga: taiga: