Skip to content
Snippets Groups Projects
Commit e78b03ea authored by Christian Elberfeld's avatar Christian Elberfeld
Browse files

Expose matrix on 8448, fix errors for ma1sd

parent 09df3709
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ services: ...@@ -8,6 +8,8 @@ services:
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"
{% if inventory_hostname == 'webserver' %} - "8448:8448"
{% endif %}
- "{{ int_ip4 }}:8080:8080" - "{{ int_ip4 }}:8080:8080"
volumes: volumes:
- "/srv/traefik/traefik.yml:/etc/traefik/traefik.yml:ro" - "/srv/traefik/traefik.yml:/etc/traefik/traefik.yml:ro"
......
...@@ -24,6 +24,16 @@ entryPoints: ...@@ -24,6 +24,16 @@ entryPoints:
tls: tls:
certResolver: "letsencrypt" certResolver: "letsencrypt"
{% if inventory_hostname == 'webserver' %}
# additional entrypoint for matrix-federation
matrix_federation:
address: ":8448"
http:
tls:
certResolver: "letsencrypt"
{% endif %}
# Discover configuration via docker # Discover configuration via docker
# use network 'web' for interconnect # use network 'web' for interconnect
......
...@@ -18,16 +18,13 @@ services: ...@@ -18,16 +18,13 @@ services:
synapse: synapse:
image: matrixdotorg/synapse:v1.21.2 image: matrixdotorg/synapse:v1.22.1
restart: always restart: always
cpu_count: "1" cpu_count: "1"
cpuset: "0" cpuset: "0"
depends_on: depends_on:
- db - db
- ma1sd - ma1sd
ports:
- 127.0.0.1:18008:8008
- 127.0.0.1:18448:8448
volumes: volumes:
- /srv/matrix/synapse-data/:/data - /srv/matrix/synapse-data/:/data
# Python version can be found in the dockerfile: https://hub.docker.com/r/matrixdotorg/synapse/dockerfile # Python version can be found in the dockerfile: https://hub.docker.com/r/matrixdotorg/synapse/dockerfile
...@@ -38,7 +35,12 @@ services: ...@@ -38,7 +35,12 @@ services:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.{{ servicename }}.rule=Host(`{{ domain }}`) - traefik.http.routers.{{ servicename }}.rule=Host(`{{ domain }}`)
- traefik.http.routers.{{ servicename }}.entrypoints=websecure - traefik.http.routers.{{ servicename }}.entrypoints=websecure
- traefik.http.routers.{{ servicename }}.service={{ servicename }}
- traefik.http.services.{{ servicename }}.loadbalancer.server.port=8008 - traefik.http.services.{{ servicename }}.loadbalancer.server.port=8008
- traefik.http.routers.matrix_federation.rule=Host(`{{ domain }}`)
- traefik.http.routers.matrix_federation.entrypoints=matrix_federation
- traefik.http.routers.matrix_federation.service=matrix_federation
- traefik.http.services.matrix_federation.loadbalancer.server.port=8448
networks: networks:
- default - default
- web - web
...@@ -47,16 +49,14 @@ services: ...@@ -47,16 +49,14 @@ services:
image: ma1uta/ma1sd:2.4.0 image: ma1uta/ma1sd:2.4.0
restart: always restart: always
ports:
- 127.0.0.1:18090:8090
volumes: volumes:
- /srv/matrix/ma1sd-config/:/etc/ma1sd - /srv/matrix/ma1sd-config/:/etc/ma1sd
- /srv/matrix/ma1sd-data/:/var/ma1sd - /srv/matrix/ma1sd-data/:/var/ma1sd
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.{{ servicename }}-ma1sd.rule=((Host(`{{ domain }}`) && PathPrefix(`/_matrix/client/r0/login`)) || (Host(`{{ domain }}`) && PathPrefix(`/_matrix/identity`))) - traefik.http.routers.{{ servicename }}-ma1sd.rule=((Host(`{{ domain }}`) && PathPrefix(`/_matrix/client/r0/login`)) || (Host(`{{ domain }}`) && PathPrefix(`/_matrix/identity`)))
- traefik.http.routers.{{ servicename }}-login.entrypoints=websecure - traefik.http.routers.{{ servicename }}-ma1sd.entrypoints=websecure
- traefik.http.services.{{ servicename }}-login.loadbalancer.server.port=8090 - traefik.http.services.{{ servicename }}-ma1sd.loadbalancer.server.port=8090
networks: networks:
- default - default
- web - web
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment