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

59 lines
1.5 KiB
YAML
Raw Normal View History

2022-01-13 15:22:49 +00: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
# 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
depends_on:
- db
2022-01-13 15:26:55 +00:00
networks:
- synapse
2022-01-13 15:22:49 +00:00
db:
image: docker.io/postgres:12-alpine
# 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 15:26:55 +00:00
networks:
- synapse
swag:
image: ghcr.io/linuxserver/swag
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
- URL=arcticfoxes.net
2022-01-13 15:31:45 +00:00
- SUBDOMAINS=matrix,app
2022-01-13 15:26:55 +00:00
- VALIDATION=http
- EMAIL=changeme@arcticfoxes.net
- ONLY_SUBDOMAINS=true
volumes:
- ./swag:/config:Z
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- 443:443
- 80:80
networks:
- synapse
restart: unless-stopped