services: postgres: container_name: synapse_postgres image: postgres:alpine restart: always 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 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 networks: synapse: ipam: driver: default