Created
February 17, 2019 10:59
-
-
Save zingi/080b57d278cb759462fa2a8f03a16f02 to your computer and use it in GitHub Desktop.
matrix using traefik; ${xyz} tags are stored in an .env file in same directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| matrix: | |
| image: avhost/docker-matrix:${TAG} | |
| container_name: matrix | |
| restart: always | |
| ports: | |
| - '8448:8448' | |
| - '8008:8008' | |
| - '3478:3478' | |
| - '3478:3478/udp' | |
| - '5349:5349/udp' | |
| - '5349:5349' | |
| - '49152-49300:49152-49300/udp' | |
| - '49152-49300:49152-49300' | |
| volumes: | |
| - /opt/synapse:/data | |
| environment: | |
| - VIRTUAL_HOST=${MATRIX_DOMAIN} | |
| - VIRTUAL_NETWORK=nginx-proxy | |
| - VIRTUAL_PORT=443 | |
| - LETSENCRYPT_HOST=${MATRIX_DOMAIN} | |
| - LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL} | |
| depends_on: | |
| - db | |
| networks: | |
| - aa_proxy | |
| - default | |
| labels: | |
| - traefik.enable=true | |
| - traefik.docker.network=aa_proxy | |
| - traefik.backend=matrix | |
| - traefik.frontend.rule=${MATRIX_DOMAIN_HOST} | |
| - traefik.port=8008 | |
| - traefik.protocol=http | |
| db: | |
| image: docker.io/postgres:10-alpine | |
| restart: unless-stopped | |
| container_name: synapse-db | |
| environment: | |
| - POSTGRES_USER=synapse | |
| - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} | |
| volumes: | |
| - synapse-schemas:/var/lib/postgresql/data | |
| volumes: | |
| synapse-schemas: | |
| networks: | |
| aa_proxy: | |
| external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment