automation/deployer/roles/build/templates/synapse/docker-compose.yml.j2

42 lines
1.2 KiB
Plaintext
Raw Normal View History

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 }}
services:
site:
# build: site
image: matrixdotorg/synapse:{{ gitea.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
# APP_NAME: "Gitea: git with a cup of coffee"
# DOMAIN: "{{ site.url }}"
# SSH_DOMAIN: "{{ site.url }}"
# ROOL_URL: "https://{{ site.url }}/"
# USER_UID: "{{ site.user_uid }}"
# USER_GID: "{{ site.user_gid }}"
# DB_TYPE: mysql
# DB_HOST: "{{ site.subnet_gateway_ip }}"
# DB_USER: "{{ site.mysql_username }}"
# DB_PASSWD: "{{ site.mysql_password }}"
# DB_NAME: "{{ site.mysql_database }}"
2020-05-23 09:22:41 +00:00
volumes:
- "{{ site_data_path }}:/data"
2020-06-01 06:21:27 +00:00
# - "/home/git/.ssh:/data/git/.ssh"
# - "/etc/timezone:/etc/timezone:ro"
# - "/etc/localtime:/etc/localtime:ro"
2020-05-23 09:22:41 +00:00
networks:
net:
ipv4_address: "{{ site.subnet_site_ip }}"
ports:
2020-06-01 06:21:27 +00:00
# - "127.0.0.1:2222:22" # SSH Passthrough
2020-05-23 09:22:41 +00:00
networks:
net:
ipam:
driver: default
config:
- subnet: "{{ site.subnet_cidr_address }}"