Обновить roles/matrix/templates/docker-compose.yml.j2

This commit is contained in:
zailon 2026-05-28 13:50:41 +05:00
parent d4f87a205d
commit b659ab5168

View File

@ -1,46 +1,46 @@
services: services:
matrix-postgres: matrix-postgres:
image: postgres:13 image: postgres:15
container_name: matrix-postgres container_name: matrix-postgres
restart: unless-stopped restart: unless-stopped
environment: environment:
POSTGRES_USER: "{{ matrix_postgres_user }}" POSTGRES_USER: "{{ matrix_postgres_user }}"
POSTGRES_PASSWORD: "{{ matrix_postgres_password }}" POSTGRES_PASSWORD: "{{ matrix_postgres_password }}"
POSTGRES_DB: "{{ matrix_postgres_db }}" POSTGRES_DB: "{{ matrix_postgres_db }}"
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --lc-collate=C --lc-ctype=C" POSTGRES_INITDB_ARGS: "--encoding=UTF8 --lc-collate=C --lc-ctype=C"
volumes: volumes:
- "{{ matrix_postgres_dir }}:/var/lib/postgresql/data" - "{{ matrix_postgres_dir }}:/var/lib/postgresql/data"
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U {{ matrix_postgres_user }}"] test: ["CMD-SHELL", "pg_isready -U {{ matrix_postgres_user }}"]
interval: 5s interval: 5s
timeout: 10s timeout: 10s
retries: 20 retries: 20
start_period: 30s start_period: 30s
networks: networks:
- matrix-network - matrix-network
matrix-synapse: matrix-synapse:
image: matrixdotorg/synapse:latest image: matrixdotorg/synapse:latest
container_name: matrix-synapse container_name: matrix-synapse
restart: unless-stopped restart: unless-stopped
ports: ports:
- "{{ matrix_port }}:8008" - "{{ matrix_port }}:8008"
volumes: volumes:
- "{{ matrix_config_dir }}:/data" - "{{ matrix_config_dir }}:/data"
- "{{ matrix_media_dir }}:/data/media" - "{{ matrix_media_dir }}:/data/media"
environment: environment:
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml - SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
depends_on: depends_on:
matrix-postgres: matrix-postgres:
condition: service_healthy condition: service_healthy
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8008/health"] test: ["CMD", "curl", "-f", "http://localhost:8008/health"]
interval: 15s interval: 15s
timeout: 5s timeout: 5s
retries: 3 retries: 3
networks: networks:
- matrix-network - matrix-network
networks: networks:
matrix-network: matrix-network:
driver: bridge driver: bridge