Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- networks:
- matrix-nw:
- external: 'False'
- reverse-proxy:
- external:
- name: reverse-proxy
- services:
- db:
- image: docker.io/postgres:10-alpine
- container_name: riot_db
- restart: always
- environment:
- - POSTGRES_USER=synapse
- - POSTGRES_PASSWORD=<DB PASSWORD>
- volumes:
- - <LOCATION>/Riot/Matrix/Postgres:/var/lib/postgresql/data
- networks:
- - matrix-nw
- synapse:
- image: docker.io/matrixdotorg/synapse:latest
- container_name: riot_matrix
- restart: unless-stopped
- environment:
- - SYNAPSE_NO_TLS=1
- - SYNAPSE_SERVER_NAME=matrix.<yourdomain>.com
- - SYNAPSE_REPORT_STATS=no
- - SYNAPSE_ENABLE_REGISTRATION=yes
- - SYNAPSE_LOG_LEVEL=INFO
- - POSTGRES_PASSWORD=<DB PASSWORD>
- - VIRTUAL_PORT=8008
- - VIRTUAL_HOST=matrix.<yourdomain>.com
- - LETSENCRYPT_HOST=matrix.<yourdomain>.com
- - LETSENCRYPT_EMAIL=admin@<yourdomain>.com
- volumes:
- - <LOCATION>/Riot/Matrix/Data:/data
- depends_on:
- - db
- networks:
- - reverse-proxy
- - matrix-nw
- riot:
- image: bubuntux/riot-web
- container_name: riot
- restart: unless-stopped
- environment:
- - VIRTUAL_PORT=80
- - VIRTUAL_HOST=chat.<yourdomain>.com
- - LETSENCRYPT_HOST=chat.<yourdomain>.com
- - LETSENCRYPT_EMAIL=admin@<yourdomain>.com
- depends_on:
- - synapse
- networks:
- - reverse-proxy
- - matrix-nw
Add Comment
Please, Sign In to add comment