Update docker-compose.yml

This commit is contained in:
fossilfranv 2023-11-20 14:43:17 -08:00
parent 0c6e074870
commit ee6a0c1591

View File

@ -1,35 +1,43 @@
version: "3.3"
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_PASSWORD: yOuMuStBeKidDiNgMe
POSTGRES_USER: synapse
POSTGRES_DB: synapse
POSTGRES_INITDB_ARGS: "--encoding='UTF8' --lc-collate='C' --lc-ctype='C'"
- POSTGRES_USER=synapse
- POSTGRES_PASSWORD=chengli197
- POSTGRES_DB=synapse
- POSTGRES_INITDB_ARGS=--encoding='UTF8' --lc-collate='C' --lc-ctype='C'
networks:
synapse_back:
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"]
- ./postgres:/var/lib/postgresql/data
networks:
matrix_back:
franvproxy_test_proxy-tier:
synapse_back:
acme-companion_proxy-tier:
external: true