Guest User

Untitled

a guest
Dec 14th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. # This compose file is compatible with Compose itself, it might need some
  2. # adjustments to run properly with stack.
  3.  
  4. version: '3'
  5.  
  6. services:
  7.  
  8. synapse:
  9. #build:
  10. # context: ../..
  11. # dockerfile: docker/Dockerfile
  12. image: docker.io/matrixdotorg/synapse:latest
  13. # Since synapse does not retry to connect to the database, restart upon
  14. # failure
  15. restart: unless-stopped
  16. # See the readme for a full documentation of the environment settings
  17. environment:
  18. - SYNAPSE_SERVER_NAME=kuelio.org
  19. - SYNAPSE_REPORT_STATS=no
  20. - SYNAPSE_ENABLE_REGISTRATION=yes
  21. - SYNAPSE_LOG_LEVEL=INFO
  22. - POSTGRES_PASSWORD=changeme
  23. volumes:
  24. # You may either store all the files in a local folder
  25. - /data/matrix:/data
  26. # .. or you may split this between different storage points
  27. # - ./files:/data
  28. # - /path/to/ssd:/data/uploads
  29. # - /path/to/large_hdd:/data/media
  30. depends_on:
  31. - db
  32. # In order to expose Synapse, remove one of the following, you might for
  33. # instance expose the TLS port directly:
  34. ports:
  35. - 8448:8448/tcp
  36. # ... or use a reverse proxy, here is an example for traefik:
  37. #labels:
  38. # - traefik.enable=true
  39. # - traefik.frontend.rule=Host:my.matrix.Host
  40. # - traefik.port=8448
  41.  
  42. db:
  43. image: docker.io/postgres:10-alpine
  44. restart: always
  45. # Change that password, of course!
  46. environment:
  47. - POSTGRES_USER=synapse
  48. - POSTGRES_PASSWORD=changeme
  49. volumes:
  50. # You may store the database tables in a local folder..
  51. - /data/pgsql:/var/lib/postgresql/data
  52. # .. or store them on some high performance storage for better results
  53. # - /path/to/ssd/storage:/var/lib/postgresql/data
  54. coturn:
  55. image: icedream/coturn
  56. container_name: coturn
  57. net: host
  58. ports:
  59. - "3478:3478/udp" # STUN/TURN UDP
  60. - "3478:3478/tcp" # STUN/TURN TCP
  61. - "3479:3479/udp" # STUN/TURN UDP Alt port (RFC5780 support)
  62. - "3479:3479/tcp" # STUN/TURN TCP Alt port (RFC5780 support)
  63. - "5349:5349/udp" # STUN/TURN DTLS
  64. - "5349:5349/tcp" # STUN/TURN TLS
  65. - "5350:5350/udp" # STUN/TURN DTLS Alt port (RFC5780 support)
  66. - "5350:5350/tcp" # STUN/TURN TLS Alt port (RFC5780 support)
  67. - "49152:65535/udp" # UDP media ports for TURN relay
  68. environment:
  69. - PORT: 3478
  70. - ALT_PORT: 3479
  71. - TLS_PORT: 5349
  72. - TLS_ALT_PORT: 5350
  73. - MIN_PORT: 49152
  74. - MAX_PORT: 65535
  75. - static-auth-secret: ThisIsASharedSecret-ChangeMe
  76. - realm: turn.mydomain.com
  77. - cert: 'path.pem',
  78. - pkey: 'path.pem'
  79. JSON_CONFIG: '{"config":["lt-cred-mech", "use-auth-secret", ]}'
Add Comment
Please, Sign In to add comment