2020-05-23 09:22:41 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
# Generated by ansible for site {{ site.url }}
|
|
|
|
# On network {{ site.subnet_cidr_address }}:
|
|
|
|
# - site (synapse) at {{ site.subnet_site_ip }}
|
|
|
|
|
2020-06-21 19:40:30 +00:00
|
|
|
# Synapse's docker-compose: https://github.com/matrix-org/synapse/blob/master/contrib/docker/docker-compose.yml
|
|
|
|
|
2020-05-23 09:22:41 +00:00
|
|
|
services:
|
|
|
|
site:
|
2020-06-02 10:54:54 +00:00
|
|
|
image: matrixdotorg/synapse:{{ synapse.version }}
|
2020-06-01 06:21:27 +00:00
|
|
|
restart: unless-stopped
|
2020-05-23 09:22:41 +00:00
|
|
|
environment:
|
2020-06-01 06:21:27 +00:00
|
|
|
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
2020-06-02 10:54:54 +00:00
|
|
|
- UID={{ site.user_uid }}
|
|
|
|
- GID={{ site.user_gid }}
|
2020-05-23 09:22:41 +00:00
|
|
|
volumes:
|
2020-06-29 18:03:37 +00:00
|
|
|
- "{{ site_data_path }}:/data"
|
2020-05-23 09:22:41 +00:00
|
|
|
networks:
|
|
|
|
net:
|
|
|
|
ipv4_address: "{{ site.subnet_site_ip }}"
|
2020-06-29 16:33:37 +00:00
|
|
|
# db:
|
|
|
|
# image: postgres:latest
|
|
|
|
# environment:
|
|
|
|
# - POSTGRES_USER="{{ site.postgres_username }}"
|
|
|
|
# - POSTGRES_PASSWORD="{{ site.postgres_password }}"
|
|
|
|
# # ensure the database gets created correctly
|
|
|
|
# # https://github.com/matrix-org/synapse/blob/master/docs/postgres.md#set-up-database
|
|
|
|
# - POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
|
|
|
# volumes:
|
|
|
|
# - "{{ site_data_path }}/db:/var/lib/postgresql/data"
|
2020-05-23 09:22:41 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
net:
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
|
|
|
- subnet: "{{ site.subnet_cidr_address }}"
|