ArcticFoxes-Synapse-Docker-.../docker-compose.yml

75 lines
1.9 KiB
YAML
Raw Normal View History

2022-01-13 10:22:49 -05:00
# This compose file is compatible with Compose itself, it might need some
# adjustments to run properly with stack.
version: '3'
services:
synapse:
image: docker.io/matrixdotorg/synapse:latest
# Since synapse does not retry to connect to the database, restart upon
# failure
restart: unless-stopped
2022-01-13 10:40:59 -05:00
container_name: synapse
2022-01-13 10:22:49 -05:00
# See the readme for a full documentation of the environment settings
# NOTE: You must edit homeserver.yaml to use postgres, it defaults to sqlite
environment:
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
volumes:
- ./files:/data:Z
2022-01-17 16:03:56 -05:00
# Uncomment if you want to install appservices. The registration files should go into ./bridges, and in your homeserver.yaml specify that it should install the appservices in /bridges.
2022-01-17 16:11:03 -05:00
# - ./bridges:/bridges:Z
2022-01-13 10:22:49 -05:00
depends_on:
2022-01-13 10:40:32 -05:00
- postgres
2022-01-13 10:26:55 -05:00
networks:
2022-01-13 11:03:12 -05:00
- matrix
2022-01-13 10:22:49 -05:00
2022-01-13 10:40:32 -05:00
postgres:
2022-01-13 18:16:39 -05:00
image: docker.io/postgres:alpine
2022-01-13 10:40:32 -05:00
restart: unless-stopped
container_name: postgres
2022-01-13 10:22:49 -05:00
# Change that password, of course!
environment:
- POSTGRES_USER=synapse
- POSTGRES_PASSWORD=changeme
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
volumes:
- ./schemas:/var/lib/postgresql/data:Z
2022-01-13 10:26:55 -05:00
networks:
2022-01-13 11:03:12 -05:00
- matrix
2022-01-13 10:26:55 -05:00
2022-01-13 10:40:32 -05:00
element:
2022-01-13 11:02:06 -05:00
image: vectorim/element-web:latest
2022-01-13 10:40:32 -05:00
restart: unless-stopped
container_name: element
2022-01-13 11:03:39 -05:00
volumes:
- ./element-config.json:/app/config.json:Z
2022-01-13 10:40:32 -05:00
networks:
2022-01-13 11:03:12 -05:00
- matrix
2022-01-13 10:40:32 -05:00
2022-01-13 10:26:55 -05:00
swag:
image: ghcr.io/linuxserver/swag
2022-01-13 10:40:32 -05:00
restart: unless-stopped
2022-01-13 10:26:55 -05:00
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
2022-01-13 11:50:31 -05:00
- URL=yourdomain.tld
2022-01-15 10:45:33 -05:00
- SUBDOMAINS=synapse,element
2022-01-13 10:26:55 -05:00
- VALIDATION=http
2022-01-13 11:50:31 -05:00
- EMAIL=changeme@yourdomain.tld
2022-01-13 10:26:55 -05:00
- ONLY_SUBDOMAINS=true
volumes:
- ./swag:/config:Z
- /etc/localtime:/etc/localtime:ro
ports:
- 443:443
- 80:80
networks:
2022-01-13 11:03:12 -05:00
- matrix
2022-01-13 11:30:41 -05:00
networks:
matrix: