Add taiga-events

This commit is contained in:
Yamila Moreno 2020-10-01 15:59:51 +02:00 committed by Juanfran
parent 74e567c602
commit b2a4650e29
4 changed files with 41 additions and 1 deletions

View File

@ -26,10 +26,20 @@ Besides, `POSTGRES_HOST` where the database is set. By default, it's meant to be
`TAIGA_PORT` should be the same as the exposed port in the `taiga-gateway`. Default is 9000.
`TAIGA_SECRET_KEY` should be the same as this var in `taiga-events`
`RABBITMQ_USER` and `RABBITMQ_PASS` are used to leave messages in rabbitmq.
### Front: taiga-front
`TAIGA_PORT` should be the same as the exposed port in the `taiga-gateway`. Default is 9000.
### Events: taiga-events
`TAIGA_SECRET_KEY` should be the same as this var in `taiga-back`
`RABBITMQ_USER` and `RABBITMQ_PASS` are used to read messages from rabbitmq.
## Complex customization
For a complex customization, you can use configuration files, mapped to a specific directories inside the containers.

View File

@ -8,6 +8,7 @@ services:
POSTGRES_USER: taiga
POSTGRES_PASSWORD: taiga
POSTGRES_HOST: taiga-db
TAIGA_SECRET_KEY: "taiga-back-secret-key"
TAIGA_PORT: 9000
depends_on:
- taiga-db
@ -20,6 +21,7 @@ services:
POSTGRES_USER: taiga
POSTGRES_PASSWORD: taiga
POSTGRES_HOST: taiga-db
TAIGA_SECRET_KEY: "taiga-back-secret-key"
TAIGA_PORT: 9000
depends_on:
- taiga-db

View File

@ -18,6 +18,9 @@ services:
POSTGRES_PASSWORD: taiga
POSTGRES_HOST: taiga-db
TAIGA_PORT: 9000
TAIGA_SECRET_KEY: "taiga-back-secret-key"
RABBITMQ_USER: taiga
RABBITMQ_PASS: taiga
volumes:
- static-data:/taiga-back/static
- media-data:/taiga-back/media
@ -29,6 +32,21 @@ services:
environment:
TAIGA_PORT: 9000
taiga-events:
image: taigaio/taiga-events:alpha
environment:
RABBITMQ_USER: taiga
RABBITMQ_PASS: taiga
TAIGA_SECRET_KEY: "taiga-back-secret-key"
taiga-rabbitmq:
image: rabbitmq:3-management-alpine
environment:
RABBITMQ_ERLANG_COOKIE: secret-erlang-cookie
RABBITMQ_DEFAULT_USER: taiga
RABBITMQ_DEFAULT_PASS: taiga
RABBITMQ_DEFAULT_VHOST: taiga
taiga-gateway:
image: nginx:1.19-alpine
ports:

View File

@ -37,7 +37,6 @@ server {
proxy_set_header X-Scheme $scheme;
}
# Static
location /static {
root /taiga;
@ -47,4 +46,15 @@ server {
location /media {
root /taiga;
}
# Events
location /events {
proxy_pass http://taiga-events:8888/events;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_connect_timeout 7d;
proxy_send_timeout 7d;
proxy_read_timeout 7d;
}
}