add support for docker-compose contents
This commit is contained in:
parent
c5a5272846
commit
dbe15bb09b
6 changed files with 112 additions and 15 deletions
4
ansible/roles/docker-compose/files/synapse/.env
Normal file
4
ansible/roles/docker-compose/files/synapse/.env
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
SYNAPSE_VERSION=v1.92.3
|
||||
|
||||
HOME_SERVER_FQDN=corp-serv.net
|
||||
SYNAPSE_FQDN=synapse.corp-apps.com
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
version: '3'
|
||||
services:
|
||||
synapse:
|
||||
image: matrixdotorg/synapse:${SYNAPSE_VERSION}
|
||||
environment:
|
||||
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
||||
- SERVERNAME=${HOME_SERVER_FQDN}
|
||||
- PUBLICBASEURL=${SYNAPSE_FQDN}
|
||||
ports:
|
||||
- "8008:8008/tcp"
|
||||
volumes:
|
||||
- /mnt/synapse_data:/data
|
||||
entrypoint: sh -c "/data/homeserver.yaml.sh && chmod -R 777 /data && /start.py"
|
||||
restart: always
|
||||
Loading…
Add table
Add a link
Reference in a new issue