services: postgres: container_name: synapse_postgres image: postgres:alpine restart: always user: '70:70' environment: LANG: C POSTGRES_INITDB_ARGS: "--locale=C --encoding=UTF8" POSTGRES_USER: synapse POSTGRES_PASSWORD: synapse networks: - synapse volumes: - /mnt/synapsepgdata:/var/lib/postgresql/data synapse: container_name: synapse image: matrixdotorg/synapse:latest # command: generate restart: always user: '991:991' command: > run --config-path=/data/homeserver.yaml --config-path=/data/secrets.yaml environment: SYNAPSE_SERVER_NAME: viyurz.fr SYNAPSE_REPORT_STATS: "yes" SYNAPSE_HTTP_PORT: 8008 TZ: "Europe/Paris" networks: - synapse ports: - "[::1]:8008:8008" volumes: - /mnt/synapsedata:/data - ./homeserver.yaml:/data/homeserver.yaml - ./secrets.yaml:/data/secrets.yaml networks: synapse: ipam: driver: default