version: '3' services: synapse-main: image: matrixdotorg/synapse:${SYNAPSE_VERSION} ports: - "8008:8008/tcp" volumes: - /mnt/synapse_data:/data - ./config:/config # ports: # - "8008:8008/tcp" command: - run - --config-path=/config/homeserver.yaml restart: always synapse-worker-generic: image: matrixdotorg/synapse:latest command: - run - "--config-path=/config/homeserver.yaml" - "--config-path=/config/synapse-worker-generic.yaml" # ports: # - "8008:8008/tcp" volumes: - /mnt/synapse_data:/data - ./config:/config environment: SYNAPSE_WORKER: synapse.app.generic_worker depends_on: - synapse-main restart: unless-stopped # healthcheck: # test: ["CMD-SHELL", "curl -fSs http://localhost:8081/health || exit 1"] # start_period: "5s" # interval: "15s" # timeout: "5s" nginx: image: nginx:${NGINX_VERSION} ports: - "80:80/tcp" - "443:443/tcp" volumes: - ./nginx:/etc/nginx/conf.d - /ssl:/ssl restart: unless-stopped redis: image: "redis:latest" ports: - "6379:6379/tcp" restart: "unless-stopped" # synapse-federation-sender-1: # image: matrixdotorg/synapse:latest # container_name: synapse-federation-sender-1 # restart: unless-stopped # entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/synapse-federation-sender-1.yaml"] # healthcheck: # disable: true # network_mode: "host" # volumes: # - ./synapse:/data # environment: # SYNAPSE_WORKER: synapse.app.generic_worker # depends_on: # - synapse