105 lines
2.5 KiB
YAML
105 lines
2.5 KiB
YAML
name: gnu
|
|
services:
|
|
synapse.main:
|
|
image: ${SYNAPSE_IMAGE}
|
|
restart: unless-stopped
|
|
environment:
|
|
- SYNAPSE_CONFIG_PATH=${SYNAPSE_SHARED_CONF}
|
|
networks:
|
|
- synapse
|
|
ports:
|
|
- 127.0.0.1:8208:8008
|
|
# - 127.0.0.1:8300:8800
|
|
healthcheck:
|
|
disable: true
|
|
volumes:
|
|
- ${SYNAPSE_DATA_PATH}
|
|
- ${SYNAPSE_HS_CONF}
|
|
- ${SYNAPSE_SIGNING_KEY}
|
|
- ${SYNAPSE_LOG_CONF}
|
|
depends_on:
|
|
- redis
|
|
|
|
synapse.media:
|
|
image: ${SYNAPSE_IMAGE}
|
|
restart: unless-stopped
|
|
command: ["run", "--config-path=${SYNAPSE_SHARED_CONF}", "--config-path=/data/worker-media.yaml"]
|
|
environment:
|
|
SYNAPSE_WORKER: synapse.app.media_repository
|
|
networks:
|
|
- synapse
|
|
ports:
|
|
- 127.0.0.1:8209:8009
|
|
- 127.0.0.1:8301:8800
|
|
healthcheck:
|
|
disable: true
|
|
volumes:
|
|
- ${SYNAPSE_DATA_PATH}
|
|
- ${SYNAPSE_HS_CONF}
|
|
- ${SYNAPSE_SIGNING_KEY}
|
|
- ./media.log.config:/data/media.log.config:ro
|
|
- ./worker-media.yaml:/data/worker-media.yaml:ro
|
|
depends_on:
|
|
- synapse.main
|
|
|
|
synapse.federation:
|
|
image: ${SYNAPSE_IMAGE}
|
|
restart: unless-stopped
|
|
command: ["run", "--config-path=${SYNAPSE_SHARED_CONF}", "--config-path=/data/worker-federation.yaml"]
|
|
environment:
|
|
SYNAPSE_WORKER: synapse.app.generic_worker
|
|
networks:
|
|
- synapse
|
|
ports:
|
|
- 127.0.0.1:8210:8010
|
|
- 127.0.0.1:8302:8800
|
|
healthcheck:
|
|
disable: true
|
|
volumes:
|
|
- ${SYNAPSE_DATA_PATH}
|
|
- ${SYNAPSE_HS_CONF}
|
|
- ${SYNAPSE_SIGNING_KEY}
|
|
- ./federation.log.config:/data/federation.log.config:ro
|
|
- ./worker-federation.yaml:/data/worker-federation.yaml:ro
|
|
depends_on:
|
|
- synapse.main
|
|
|
|
synapse.bg:
|
|
image: ${SYNAPSE_IMAGE}
|
|
restart: unless-stopped
|
|
command: ["run", "--config-path=${SYNAPSE_SHARED_CONF}", "--config-path=/data/worker-background.yaml"]
|
|
environment:
|
|
SYNAPSE_WORKER: synapse.app.generic_worker
|
|
networks:
|
|
- synapse
|
|
ports:
|
|
- 127.0.0.1:8303:8800
|
|
healthcheck:
|
|
disable: true
|
|
volumes:
|
|
- ${SYNAPSE_DATA_PATH}
|
|
- ${SYNAPSE_HS_CONF}
|
|
- ${SYNAPSE_SIGNING_KEY}
|
|
- ./bg.log.config:/data/bg.log.config:ro
|
|
- ./worker-background.yaml:/data/worker-background.yaml:ro
|
|
depends_on:
|
|
- synapse.main
|
|
|
|
redis:
|
|
image: ${REDIS_IMAGE}
|
|
restart: unless-stopped
|
|
networks:
|
|
- synapse
|
|
volumes:
|
|
- redis_data:/data
|
|
|
|
networks:
|
|
synapse:
|
|
ipam:
|
|
config:
|
|
- subnet: 300f:0:0:2000::/124
|
|
gateway: 300f:0:0:2000::1
|
|
|
|
volumes:
|
|
redis_data:
|