app-store/apps/matrix-conduit/docker-compose.yml

88 lines
4.4 KiB
YAML
Raw Normal View History

2023-05-08 13:17:31 +00:00
version: "3.7"
services:
2023-05-09 07:19:37 +00:00
matrix-conduit:
container_name: matrix-conduit
image: matrixconduit/matrix-conduit:v0.8.0
2023-05-08 13:17:31 +00:00
environment:
CONDUIT_SERVER_NAME: ${APP_DOMAIN}
CONDUIT_DATABASE_PATH: /var/lib/matrix-conduit/
CONDUIT_DATABASE_BACKEND: rocksdb
2023-08-13 17:00:10 +00:00
CONDUIT_ADDRESS: 0.0.0.0
2023-05-08 13:17:31 +00:00
CONDUIT_PORT: 6167
2023-08-13 17:00:10 +00:00
CONDUIT_LOG: ${LOG:-warn,rocket=off,_=off,sled=off}
2023-05-08 13:17:31 +00:00
CONDUIT_MAX_REQUEST_SIZE: ${MAX_REQUEST_SIZE:-20000000}
CONDUIT_ALLOW_REGISTRATION: ${ALLOW_REGISTRATION:-false}
CONDUIT_ALLOW_FEDERATION: ${ALLOW_FEDERATION:-false}
CONDUIT_TRUSTED_SERVERS: ${TRUSTED_SERVERS:-[]}
2023-08-13 17:00:10 +00:00
CONDUIT_ALLOW_CHECK_FOR_UPDATES: false
CONDUIT_TURN_URIS: ${TURN_URIS:-["turn:localhost?transport=udp", "turn:localhost?transport=tcp"]}
CONDUIT_TURN_SECRET: ${TURN_SECRET:-turnsecret}
CONDUIT_CONFIG: "" # Ignore this
2023-05-08 13:17:31 +00:00
restart: unless-stopped
volumes:
- ${APP_DATA_DIR}/data:/var/lib/matrix-conduit/
networks:
- tipi_main_network
labels:
# Main
traefik.enable: true
traefik.http.middlewares.matrix-conduit-web-redirect.redirectscheme.scheme: https
traefik.http.services.matrix-conduit.loadbalancer.server.port: 6167
# Web
traefik.http.routers.matrix-conduit-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.matrix-conduit-insecure.entrypoints: web
traefik.http.routers.matrix-conduit-insecure.service: matrix-conduit
traefik.http.routers.matrix-conduit-insecure.middlewares: matrix-conduit-web-redirect
# Websecure
traefik.http.routers.matrix-conduit.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.matrix-conduit.entrypoints: websecure
traefik.http.routers.matrix-conduit.service: matrix-conduit
traefik.http.routers.matrix-conduit.tls.certresolver: myresolver
# Local domain
traefik.http.routers.matrix-conduit-local-insecure.rule: Host(`matrix-conduit.${LOCAL_DOMAIN}`)
traefik.http.routers.matrix-conduit-local-insecure.entrypoints: web
traefik.http.routers.matrix-conduit-local-insecure.service: matrix-conduit
traefik.http.routers.matrix-conduit-local-insecure.middlewares: matrix-conduit-web-redirect
# Local domain secure
traefik.http.routers.matrix-conduit-local.rule: Host(`matrix-conduit.${LOCAL_DOMAIN}`)
traefik.http.routers.matrix-conduit-local.entrypoints: websecure
traefik.http.routers.matrix-conduit-local.service: matrix-conduit
traefik.http.routers.matrix-conduit-local.tls: true
2023-05-08 13:17:31 +00:00
2023-05-09 07:19:37 +00:00
matrix-conduit-well-known:
container_name: matrix-conduit-well-known
build:
context: nginx
dockerfile: Dockerfile
environment:
APP_DOMAIN: ${APP_DOMAIN}
restart: unless-stopped
networks:
- tipi_main_network
labels:
# Main
traefik.enable: true
traefik.http.middlewares.matrix-well-knows-web-redirect.redirectscheme.scheme: https
traefik.http.services.matrix-well-knows.loadbalancer.server.port: 80
# Web
traefik.http.routers.matrix-well-knows-insecure.rule: Host(`${APP_DOMAIN}`) && PathPrefix(`/.well-known/matrix`)
traefik.http.routers.matrix-well-knows-insecure.entrypoints: web
traefik.http.routers.matrix-well-knows-insecure.service: matrix-well-knows
traefik.http.routers.matrix-well-knows-insecure.middlewares: matrix-well-knows-web-redirect
# Websecure
2023-08-13 17:00:10 +00:00
traefik.http.routers.matrix-well-knows.rule: Host(`${APP_DOMAIN}`) && PathPrefix(`/.well-known/matrix`)
2023-05-08 13:17:31 +00:00
traefik.http.routers.matrix-well-knows.entrypoints: websecure
traefik.http.routers.matrix-well-knows.service: matrix-well-knows
traefik.http.routers.matrix-well-knows.tls.certresolver: myresolver
# Local domain
2023-08-13 17:00:10 +00:00
traefik.http.routers.matrix-well-knows-local-insecure.rule: Host(`matrix-well-knows.${LOCAL_DOMAIN}`) && PathPrefix(`/.well-known/matrix`)
traefik.http.routers.matrix-well-knows-local-insecure.entrypoints: web
traefik.http.routers.matrix-well-knows-local-insecure.service: matrix-well-knows
traefik.http.routers.matrix-well-knows-local-insecure.middlewares: matrix-well-knows-web-redirect
# Local domain secure
traefik.http.routers.matrix-well-knows-local.rule: Host(`matrix-well-knows.${LOCAL_DOMAIN}`) && PathPrefix(`/.well-known/matrix`)
traefik.http.routers.matrix-well-knows-local.entrypoints: websecure
traefik.http.routers.matrix-well-knows-local.service: matrix-well-knows
traefik.http.routers.matrix-well-knows-local.tls: true