52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
restart: always
|
|
environment:
|
|
POSTGRES_USER: ${PSQL_NAME}
|
|
POSTGRES_PASSWORD: ${PSQL_PASS}
|
|
POSTGRES_DB: ${PSQL_DB_NAME}
|
|
POSTGRES_INITDB_ARGS: --encoding=UTF8 --lc-collate=C --lc-ctype=C
|
|
PGUSER: ${PSQL_NAME}
|
|
PGDATABASE: ${PSQL_DB_NAME}
|
|
volumes:
|
|
- synapse-pg-data:/var/lib/postgresql/data
|
|
networks:
|
|
- synapse-net
|
|
- postgre-general
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "50m"
|
|
max-file: "3"
|
|
|
|
synapse-foxgirls:
|
|
image: matrixdotorg/synapse:latest
|
|
restart: unless-stopped
|
|
environment:
|
|
SYNAPSE_SERVER_NAME: foxgirls.date
|
|
SYNAPSE_REPORT_STATS: "yes"
|
|
SYNAPSE_DATABASE: "postgres://${PSQL_NAME}:${PSQL_PASS}@postgres/${PSQL_DB_NAME}"
|
|
volumes:
|
|
- ~/synapse-data2:/data # Host folder with config, media, logs
|
|
depends_on:
|
|
- postgres
|
|
networks:
|
|
- synapse-net
|
|
- reverse_proxy_default
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "50m"
|
|
max-file: "3"
|
|
|
|
volumes:
|
|
synapse-pg-data:
|
|
|
|
networks:
|
|
synapse-net:
|
|
driver: bridge
|
|
reverse_proxy_default:
|
|
external: true
|
|
postgre-general:
|
|
external: true |