vps/roles/synapse/templates/docker-compose.yaml

28 lines
855 B
YAML
Raw Normal View History

2024-02-17 19:01:04 +01:00
services:
postgres:
container_name: synapse-postgres
image: docker.io/library/postgres:alpine
2024-02-17 19:01:04 +01:00
restart: always
user: {{ users['synapse_postgres'] }}:{{ users['synapse_postgres'] }}
environment:
LANG: C
POSTGRES_INITDB_ARGS: "--locale=C --encoding=UTF8"
2024-02-23 12:17:32 +01:00
POSTGRES_USER: synapse
2024-02-17 19:01:04 +01:00
POSTGRES_PASSWORD: {{ synapse_secrets['postgres_password'] }}
volumes:
- {{ volumes['synapse_postgres_datadir'] }}:/var/lib/postgresql/data
synapse:
container_name: synapse
image: docker.io/matrixdotorg/synapse:latest
2024-02-17 19:01:04 +01:00
restart: always
environment:
UID: {{ users['synapse'] }}
GID: {{ users['synapse'] }}
TZ: {{ timezone }}
ports:
- 127.0.0.1:{{ ports['synapse'] }}:8008
2024-02-17 19:01:04 +01:00
volumes:
- {{ volumes['synapse_datadir'] }}:/data
- ./homeserver.yaml:/data/homeserver.yaml