docker-compose.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. version: "3"
  2. networks:
  3. web:
  4. external: true
  5. services:
  6. app:
  7. image: matrixdotorg/synapse:v0.33.8
  8. restart: unless-stopped
  9. env_file:
  10. - .env
  11. environment:
  12. - SYNAPSE_SERVER_NAME=${CHATONS_SERVICE:-matrix}.${CHATONS_DOMAIN:-localhost}
  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_SERVER_NAME: ${CHATONS_SERVICE:-matrix}.${CHATONS_DOMAIN:-localhost}
  38. RIOT_VERSION: v0.17.5
  39. labels:
  40. traefik.enable: "true"
  41. traefik.frontend.rule: "Host: riot.${CHATONS_DOMAIN:-localhost}, www.riot.${CHATONS_DOMAIN:-localhost}"
  42. networks:
  43. - web