Added synapse
This commit is contained in:
36
docker/docker-02/synapse/compose.yaml
Normal file
36
docker/docker-02/synapse/compose.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
services:
|
||||
synapse:
|
||||
container_name: synapse
|
||||
image: docker.io/matrixdotorg/synapse:latest
|
||||
environment:
|
||||
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
||||
- UID=1000
|
||||
- GID=1000
|
||||
volumes:
|
||||
- /opt/containers/synapse/data:/data
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
- synapse
|
||||
- newt
|
||||
restart: unless-stopped
|
||||
|
||||
db:
|
||||
image: docker.io/postgres:15-alpine
|
||||
container_name: synapse-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER=synapse
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_DB=synapse
|
||||
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
||||
volumes:
|
||||
- /opt/containers/synapse/database:/var/lib/postgresql/data
|
||||
networks:
|
||||
- synapse
|
||||
|
||||
networks:
|
||||
synapse:
|
||||
newt:
|
||||
external: true
|
||||
Reference in New Issue
Block a user