Advertisement
Guest User

Untitled

a guest
Apr 4th, 2019
2,392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. version: '3'
  2.  
  3. networks:
  4. matrix-nw:
  5. external: 'False'
  6. reverse-proxy:
  7. external:
  8. name: reverse-proxy
  9.  
  10. services:
  11. db:
  12. image: docker.io/postgres:10-alpine
  13. container_name: riot_db
  14. restart: always
  15. environment:
  16. - POSTGRES_USER=synapse
  17. - POSTGRES_PASSWORD=<DB PASSWORD>
  18. volumes:
  19. - <LOCATION>/Riot/Matrix/Postgres:/var/lib/postgresql/data
  20. networks:
  21. - matrix-nw
  22.  
  23. synapse:
  24. image: docker.io/matrixdotorg/synapse:latest
  25. container_name: riot_matrix
  26. restart: unless-stopped
  27. environment:
  28. - SYNAPSE_NO_TLS=1
  29. - SYNAPSE_SERVER_NAME=matrix.<yourdomain>.com
  30. - SYNAPSE_REPORT_STATS=no
  31. - SYNAPSE_ENABLE_REGISTRATION=yes
  32. - SYNAPSE_LOG_LEVEL=INFO
  33. - POSTGRES_PASSWORD=<DB PASSWORD>
  34. - VIRTUAL_PORT=8008
  35. - VIRTUAL_HOST=matrix.<yourdomain>.com
  36. - LETSENCRYPT_HOST=matrix.<yourdomain>.com
  37. - LETSENCRYPT_EMAIL=admin@<yourdomain>.com
  38. volumes:
  39. - <LOCATION>/Riot/Matrix/Data:/data
  40. depends_on:
  41. - db
  42. networks:
  43. - reverse-proxy
  44. - matrix-nw
  45.  
  46. riot:
  47. image: bubuntux/riot-web
  48. container_name: riot
  49. restart: unless-stopped
  50. environment:
  51. - VIRTUAL_PORT=80
  52. - VIRTUAL_HOST=chat.<yourdomain>.com
  53. - LETSENCRYPT_HOST=chat.<yourdomain>.com
  54. - LETSENCRYPT_EMAIL=admin@<yourdomain>.com
  55. depends_on:
  56. - synapse
  57. networks:
  58. - reverse-proxy
  59. - matrix-nw
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement