73 lines
1.9 KiB
YAML
73 lines
1.9 KiB
YAML
version: '3'
|
|
services:
|
|
synapse:
|
|
container_name: synapse
|
|
hostname: piorgeracao.loki
|
|
image: matrixdotorg/synapse:latest
|
|
restart: always
|
|
environment:
|
|
- SYNAPSE_SERVER_NAME=urchcno5rea4njyb7niytdekqw87x55x9q77a1gba9tqkbznw67y.loki
|
|
- SYNAPSE_REPORT_STATS=yes
|
|
- SYNAPSE_NO_TLS=1
|
|
- SYNAPSE_ENABLE_REGISTRATION=yes
|
|
# - SYNAPSE_CONFIG_PATH=/config
|
|
- SYNAPSE_LOG_LEVEL=DEBUG
|
|
# - SYNAPSE_REGISTRATION_SHARED_SECRET=${REG_SHARED_SECRET}
|
|
- POSTGRES_DB=synapse
|
|
- POSTGRES_HOST=synapse_db
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
volumes:
|
|
- ./data/synapse:/data
|
|
depends_on:
|
|
- synapse_db
|
|
# In order to expose Synapse, remove one of the following, you might for
|
|
# instance expose the TLS port directly:
|
|
# ports:
|
|
# - 8448:8448/tcp
|
|
networks:
|
|
pg_bus:
|
|
ipv4_address: 10.255.253.10
|
|
synapse_db:
|
|
image: docker.io/postgres:10-alpine
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_DB=synapse
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
volumes:
|
|
- ./data/postgres:/var/lib/postgresql/data
|
|
networks:
|
|
pg_bus:
|
|
ipv4_address: 10.255.253.11
|
|
element:
|
|
image: vectorim/element-web
|
|
restart: always
|
|
volumes:
|
|
- ./data/element/config.json:/app/config.json
|
|
networks:
|
|
pg_bus:
|
|
ipv4_address: 10.255.253.12
|
|
dimension:
|
|
image: turt2live/matrix-dimension
|
|
restart: always
|
|
volumes:
|
|
- ./data/dimension:/data
|
|
extra_hosts:
|
|
urchcno5rea4njyb7niytdekqw87x55x9q77a1gba9tqkbznw67y.loki: 10.255.253.254
|
|
networks:
|
|
pg_bus:
|
|
ipv4_address: 10.255.253.13
|
|
web:
|
|
image: nginx
|
|
volumes:
|
|
- ./data/wellknown:/usr/share/nginx/html
|
|
restart: always
|
|
networks:
|
|
pg_bus:
|
|
ipv4_address: 10.255.253.14
|
|
networks:
|
|
pg_bus:
|
|
external:
|
|
name: pg_bus
|