Update docker-compose.yml
This commit is contained in:
parent
0c6e074870
commit
ee6a0c1591
@ -1,35 +1,43 @@
|
||||
version: "3.3"
|
||||
|
||||
services:
|
||||
postgresql:
|
||||
image: postgres:latest
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_PASSWORD: yOuMuStBeKidDiNgMe
|
||||
POSTGRES_USER: synapse
|
||||
POSTGRES_DB: synapse
|
||||
POSTGRES_INITDB_ARGS: "--encoding='UTF8' --lc-collate='C' --lc-ctype='C'"
|
||||
volumes:
|
||||
- "./postgresdata:/var/lib/postgresql/"
|
||||
networks: ["matrix_back"]
|
||||
|
||||
|
||||
synapse:
|
||||
image: "matrixdotorg/synapse:latest"
|
||||
container_name: "synapse"
|
||||
volumes:
|
||||
- "./data:/data"
|
||||
environment:
|
||||
VIRTUAL_HOST: "matrix.airdog.site"
|
||||
VIRTUAL_PORT: 8008
|
||||
LETSENCRYPT_HOST: "matrix.airdog.site"
|
||||
SYNAPSE_SERVER_NAME: "matrix.airdog.site"
|
||||
LETSENCRYPT_EMAIL: "ouch@thetrauma.org"
|
||||
SYNAPSE_REPORT_STATS: "yes"
|
||||
networks: ["franvproxy_test_proxy-tier","matrix_back"]
|
||||
|
||||
|
||||
networks:
|
||||
matrix_back:
|
||||
franvproxy_test_proxy-tier:
|
||||
external: true
|
||||
|
||||
version: "2.1"
|
||||
services:
|
||||
synapse:
|
||||
image: matrixdotorg/synapse:latest
|
||||
container_name: synapse
|
||||
environment:
|
||||
- TZ=America/Vancouver
|
||||
- VIRTUAL_HOST=matrix.airdog.site
|
||||
- LETSENCRYPT_HOST=matrix.airdog.site
|
||||
- LETSENCRYPT_EMAIL=lets_encrypt@treillis.mailer.me
|
||||
- VIRTUAL_PORT=8008
|
||||
- SYNAPSE_SERVER_NAME=matrix.airdog.site
|
||||
- SYNAPSE_REPORT_STATS=yes
|
||||
labels:
|
||||
- diun.enable=true
|
||||
|
||||
volumes:
|
||||
- ./data:/data
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- postgresql
|
||||
networks:
|
||||
synapse_back:
|
||||
acme-companion_proxy-tier:
|
||||
|
||||
postgresql:
|
||||
image: postgres:latest
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=synapse
|
||||
- POSTGRES_PASSWORD=chengli197
|
||||
- POSTGRES_DB=synapse
|
||||
- POSTGRES_INITDB_ARGS=--encoding='UTF8' --lc-collate='C' --lc-ctype='C'
|
||||
networks:
|
||||
synapse_back:
|
||||
volumes:
|
||||
- ./postgres:/var/lib/postgresql/data
|
||||
|
||||
networks:
|
||||
synapse_back:
|
||||
acme-companion_proxy-tier:
|
||||
external: true
|
||||
Loading…
Reference in New Issue
Block a user