docker-compose.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. version: "3"
  2. networks:
  3. web:
  4. external: true
  5. services:
  6. app:
  7. image: matrixdotorg/synapse:v0.34.1.1-py3
  8. restart: unless-stopped
  9. env_file:
  10. - .env
  11. environment:
  12. - SYNAPSE_SERVER_NAME=${SYNAPSE_SERVER_NAME}
  13. labels:
  14. traefik.enable: "true"
  15. traefik.frontend.rule: "Host: ${CHATONS_SERVICE:-matrix}.${CHATONS_DOMAIN:-localhost}, www.${CHATONS_SERVICE:-matrix}.${CHATONS_DOMAIN:-localhost}"
  16. networks:
  17. - web
  18. - default
  19. volumes:
  20. - ${CHATONS_ROOT_DIR:-/srv/chatons}/${CHATONS_SERVICE:-matrix}/data:/data
  21. ports:
  22. - 8448:8448
  23. db:
  24. image: postgres:10-alpine
  25. restart: unless-stopped
  26. env_file:
  27. - .env
  28. environment:
  29. - POSTGRES_USER=synapse
  30. - POSTGRES_DB=synapse
  31. volumes:
  32. - ${CHATONS_ROOT_DIR:-/srv/chatons}/${CHATONS_SERVICE:-matrix}/postgres:/var/lib/postgresql/data
  33. riot:
  34. build:
  35. context: .
  36. args:
  37. SYNAPSE_FULL_URL: ${CHATONS_SERVICE:-matrix}.${CHATONS_DOMAIN:-localhost}
  38. RIOT_VERSION: v1.0.1
  39. restart: unless-stopped
  40. labels:
  41. traefik.enable: "true"
  42. traefik.frontend.rule: "Host: ${RIOT_SUBDOMAIN:-riot}.${CHATONS_DOMAIN:-localhost}, www.${RIOTSUBDOMAIN:-riot}.${CHATONS_DOMAIN:-localhost}"
  43. networks:
  44. - web