2019-02-09 10:20:11 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: matrix network
|
|
|
|
docker_network:
|
|
|
|
name: matrix
|
|
|
|
|
|
|
|
- name: matrix database volume
|
|
|
|
docker_volume:
|
|
|
|
name: matrix_db
|
|
|
|
|
2019-02-09 14:43:15 +00:00
|
|
|
- name: riot volume
|
|
|
|
docker_volume:
|
|
|
|
name: riot_app
|
|
|
|
|
|
|
|
- name: upload riot config.json
|
|
|
|
template:
|
|
|
|
src: files/riot-config.json
|
|
|
|
dest: /var/lib/docker/volumes/riot_app/data/config.json
|
|
|
|
|
|
|
|
- name: upload riot.im.conf
|
|
|
|
template:
|
|
|
|
src: files/riot.im.conf
|
|
|
|
dest: /var/lib/docker/volumes/riot_app/data/riot.im.conf
|
|
|
|
|
2019-02-09 10:20:11 +00:00
|
|
|
- name: matrix container
|
|
|
|
docker_container:
|
|
|
|
name: matrix
|
|
|
|
image: matrixdotorg/synapse:latest
|
|
|
|
env:
|
2019-02-09 14:07:16 +00:00
|
|
|
SYNAPSE_SERVER_NAME: {{ matrix.domain }}
|
2019-02-09 10:20:11 +00:00
|
|
|
SYNAPSE_REPORT_STATS: no
|
|
|
|
SYNAPSE_ENABLE_REGISTRATION: yes
|
|
|
|
SYNAPSE_LOG_LEVEL: INFO
|
|
|
|
POSTGRES_PASSWORD: "{{ postgres_passwords.matrix }}"
|
|
|
|
|
|
|
|
- name: matrix database container
|
|
|
|
docker_container:
|
|
|
|
name: matrix_db
|
|
|
|
image: postgres:10
|
|
|
|
state: started
|
|
|
|
restart_policy: always
|
|
|
|
networks:
|
2019-02-09 14:43:15 +00:00
|
|
|
- name: matrix
|
2019-02-09 10:20:11 +00:00
|
|
|
volumes:
|
|
|
|
- matrix_db:/var/lib/postgresql/data
|
|
|
|
env:
|
|
|
|
POSTGRES_DB: somethingelse
|
|
|
|
POSTGRES_USER: matrix
|
|
|
|
POSTGRES_PASSWORD: "{{ postgres_passwords.matrix }}"
|
2019-02-09 14:43:15 +00:00
|
|
|
|
|
|
|
- name: riot container
|
|
|
|
docker_container:
|
|
|
|
name: riot_app
|
|
|
|
image: avhost/docker-matrix-riot
|
|
|
|
state: started
|
|
|
|
restart_policy: always
|
|
|
|
networks:
|
|
|
|
- name: matrix
|
|
|
|
- name: external_services
|
|
|
|
|