bronlund

Taiga on Docker

Jun 13th, 2021
821
316 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: "3.5"
  2.  
  3. x-environment:
  4.  &default-back-environment
  5.   # Database settings
  6.   POSTGRES_DB: bla
  7.   POSTGRES_USER: bla
  8.   POSTGRES_PASSWORD: blablabla
  9.   POSTGRES_HOST: bla
  10.   # Taiga settings
  11.   TAIGA_SECRET_KEY: "blabla"
  12.   TAIGA_SITES_DOMAIN: "bla.bla.bla:443"
  13.   TAIGA_SITES_SCHEME: "https"
  14.   TAIGA_SSL_BY_REVERSE_PROXY: "True"
  15.   # Email settings
  16.   EMAIL_BACKEND: "django.core.mail.backends.smtp.EmailBackend"
  17.   DEFAULT_FROM_EMAIL: "bla@bla.bla"
  18.   EMAIL_USE_TLS: "False"
  19.   EMAIL_USE_SSL: "True"
  20.   EMAIL_HOST: "bla.bla.bla"
  21.   EMAIL_PORT: 465
  22.   EMAIL_HOST_USER: "bla@bla.bla"
  23.   EMAIL_HOST_PASSWORD: "bla"
  24.   # Rabbitmq settings
  25.   RABBITMQ_USER: taiga
  26.   RABBITMQ_PASS: blablabla
  27.   # Telemetry settings
  28.   ENABLE_TELEMETRY: "True"
  29.   # Misc
  30.   SESSION_COOKIE_SECURE: "False"
  31.   CSRF_COOKIE_SECURE: "False"
  32.   PUBLIC_REGISTER_ENABLED: "False"
  33.  
  34. x-volumes:
  35.  &default-back-volumes
  36.   - taiga-static-data:/taiga-back/static
  37.   - taiga-media-data:/taiga-back/media
  38.  
  39. services:
  40.   taiga-back:
  41.     image: taigaio/taiga-back:latest
  42.     environment: *default-back-environment
  43.     volumes: *default-back-volumes
  44.     networks:
  45.      - backend
  46.     depends_on:
  47.      - taiga-events-rabbitmq
  48.       - taiga-async-rabbitmq
  49.  
  50.   taiga-async:
  51.     image: taigaio/taiga-back:latest
  52.     entrypoint: ["/taiga-back/docker/async_entrypoint.sh"]
  53.     environment: *default-back-environment
  54.     volumes: *default-back-volumes
  55.     networks:
  56.      - backend
  57.     depends_on:
  58.      - taiga-back
  59.       - taiga-async-rabbitmq
  60.  
  61.   taiga-async-rabbitmq:
  62.     image: rabbitmq:3-management-alpine
  63.     environment:
  64.       RABBITMQ_ERLANG_COOKIE: blablabla
  65.       RABBITMQ_DEFAULT_USER: taiga
  66.       RABBITMQ_DEFAULT_PASS: blablabla
  67.       RABBITMQ_DEFAULT_VHOST: taiga
  68.     volumes:
  69.      - taiga-async-rabbitmq-data:/var/lib/rabbitmq
  70.     networks:
  71.      - backend
  72.  
  73.   taiga-front:
  74.     image: taigaio/taiga-front:latest
  75.     ports:
  76.      - "9000:9000"
  77.     environment:
  78.       TAIGA_SSL_BY_REVERSE_PROXY: "True"
  79.       TAIGA_URL: "https://bla.bla.bla:443"
  80.       TAIGA_HOSTNAME: "bla.bla.bla:443"
  81.       TAIGA_WEBSOCKETS_URL: "wss://bla.bla.bla:443"
  82.       PUBLIC_REGISTER_ENABLED: "false"
  83.     networks:
  84.      - backend
  85.  
  86.   taiga-events:
  87.     image: taigaio/taiga-events:latest
  88.     environment:
  89.       RABBITMQ_USER: taiga
  90.       RABBITMQ_PASS: blablabla
  91.       TAIGA_SECRET_KEY: "blablabla"
  92.     networks:
  93.      - backend
  94.     depends_on:
  95.      - taiga-events-rabbitmq
  96.  
  97.   taiga-events-rabbitmq:
  98.     image: rabbitmq:3-management-alpine
  99.     environment:
  100.       RABBITMQ_ERLANG_COOKIE: blablabla
  101.       RABBITMQ_DEFAULT_USER: taiga
  102.       RABBITMQ_DEFAULT_PASS: blablabla
  103.       RABBITMQ_DEFAULT_VHOST: taiga
  104.     volumes:
  105.      - taiga-events-rabbitmq-data:/var/lib/rabbitmq
  106.     networks:
  107.      - backend
  108.  
  109.   taiga-protected:
  110.     image: taigaio/taiga-protected:latest
  111.     environment:
  112.       MAX_AGE: 360
  113.       SECRET_KEY: "blablabla"
  114.     networks:
  115.      - backend
  116.  
  117.   taiga-gateway:
  118.     image: nginx:1.19-alpine
  119.     volumes:
  120.      - ./taiga-gateway/taiga.conf:/etc/nginx/conf.d/default.conf
  121.       - taiga-static-data:/taiga/static
  122.       - taiga-media-data:/taiga/media
  123.     networks:
  124.      - backend
  125.     depends_on:
  126.      - taiga-front
  127.       - taiga-back
  128.       - taiga-events
  129.     environment:
  130.       VIRTUAL_HOST: "bla.bla.bla"
  131.       LETSENCRYPT_HOST: "bla.bla.bla"
  132.       LETSENCRYPT_EMAIL: "bla@bla.bla"
  133.  
  134. volumes:
  135.   taiga-static-data:
  136.   taiga-media-data:
  137.   taiga-async-rabbitmq-data:
  138.   taiga-events-rabbitmq-data:
  139. networks:
  140.   backend:
  141.     external: true
  142.     name: web
  143.  
RAW Paste Data