deployment/stacks/matrix.yml

171 lines
3.7 KiB
YAML
Raw Normal View History

2021-12-18 10:35:43 +01:00
# Conduit - Behind Traefik Reverse Proxy
version: '3.4'
services:
# ====MATRIX SERVER=====
conduit:
image: 'matrixconduit/matrix-conduit:next'
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class==matrix'
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.conduit.rule=Host(`matrix.rustybever.be`)'
- 'traefik.http.routers.conduit.tls=true'
- 'traefik.http.routers.conduit.tls.certresolver=letsEncrypt'
- 'traefik.http.services.conduit.loadbalancer.server.port=6167'
- 'traefik.http.routers.conduit.middlewares=cors-headers@docker'
- 'traefik.http.middlewares.cors-headers.headers.accessControlAllowOriginList=*'
- 'traefik.http.middlewares.cors-headers.headers.accessControlAllowHeaders=Origin, X-Requested-With, Content-Type, Accept, Authorization'
- 'traefik.http.middlewares.cors-headers.headers.accessControlAllowMethods=GET, POST, PUT, DELETE, OPTIONS'
configs:
2022-01-23 22:25:30 +01:00
- source: conduit_v6
2021-12-18 10:35:43 +01:00
target: '/srv/conduit/conduit.toml'
environment:
- 'CONDUIT_CONFIG=/srv/conduit/conduit.toml'
2022-02-22 09:01:11 +01:00
- 'CONDUIT_DATABASE_PATH=/srv/conduit/.local/share/conduit'
2021-12-18 10:35:43 +01:00
networks:
- 'default'
- 'public'
volumes:
- 'conduit:/srv/conduit/.local/share/conduit'
# =====FACEBOOK MESSENGER BRIDGE=====
facebook:
2022-01-29 17:30:02 +01:00
image: 'dock.mau.dev/mautrix/facebook:v0.3.3'
2021-12-18 10:35:43 +01:00
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class==matrix'
networks:
- 'default'
- 'monitoring'
volumes:
- 'facebook:/data'
facebook-db:
image: 'postgres:14.1-alpine'
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class==matrix'
healthcheck:
test: pg_isready
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
2021-12-18 10:35:43 +01:00
environment:
- 'POSTGRES_DB=matrix_fb'
- 'POSTGRES_USER=matrix_fb'
- 'POSTGRES_PASSWORD=matrix_fb'
volumes:
- 'facebook-db:/var/lib/postgresql/data'
# =====SIGNAL BRIDGE=====
signal:
2022-01-16 21:50:54 +01:00
image: 'dock.mau.dev/mautrix/signal:v0.2.2'
2021-12-18 10:35:43 +01:00
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class==matrix'
networks:
- 'default'
- 'monitoring'
volumes:
- 'signal:/data'
- 'signald:/signald'
signald:
2022-01-14 09:07:46 +01:00
image: 'signald/signald:0.16.1'
2021-12-18 10:35:43 +01:00
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class==matrix'
volumes:
- 'signald:/signald'
signal-db:
image: 'postgres:14.1-alpine'
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class==matrix'
healthcheck:
test: pg_isready
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
2021-12-18 10:35:43 +01:00
environment:
- 'POSTGRES_DB=matrix_signal'
- 'POSTGRES_USER=matrix_signal'
- 'POSTGRES_PASSWORD=matrix_signal'
volumes:
- 'signal-db:/var/lib/postgresql/data'
# =====IRC BRIDGE=====
irc:
2022-01-16 21:50:54 +01:00
image: 'hif1/heisenbridge:1.10.0'
2021-12-18 10:35:43 +01:00
command: >
-c /data/config.yaml
http://conduit:6167
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class==matrix'
volumes:
- 'irc:/data'
configs:
2022-01-23 22:25:30 +01:00
conduit_v6:
2021-12-18 10:35:43 +01:00
external: true
networks:
public:
external: true
monitoring:
external: true
volumes:
conduit:
facebook:
facebook-db:
signal:
signald:
signal-db:
irc: