SSB room server implemented in Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.4 KiB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
  1. version: "3.8"
  2. services:
  3. app:
  4. image: 3wordchant/go-ssb-room:2.0.3
  5. networks:
  6. - proxy
  7. environment:
  8. - DOMAIN
  9. volumes:
  10. - "data:/app/data"
  11. deploy:
  12. restart_policy:
  13. condition: on-failure
  14. labels:
  15. - "traefik.enable=true"
  16. - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3000"
  17. - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`) || HostRegexp(`{subdomain:\\w+}.${DOMAIN}`)"
  18. - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
  19. - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
  20. - "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect-aliases@docker"
  21. - "traefik.http.middlewares.${STACK_NAME}-redirect-aliases.redirectregex.regex=^https://(\\w+)\\.${DOMAIN}/(.*)"
  22. - "traefik.http.middlewares.${STACK_NAME}-redirect-aliases.redirectregex.replacement=https://${DOMAIN}/alias/$${1}$${2}"
  23. - "traefik.tcp.routers.${STACK_NAME}-muxrpc.rule=HostSNI(`*`)"
  24. - "traefik.tcp.routers.${STACK_NAME}-muxrpc.entrypoints=ssb-muxrpc"
  25. - "traefik.tcp.services.${STACK_NAME}-muxrpc.loadbalancer.server.port=8008"
  26. - "traefik.http.routers.${STACK_NAME}.tls.domains[0].main=${DOMAIN}"
  27. - "traefik.http.routers.${STACK_NAME}.tls.domains[0].sans=*.${DOMAIN}"
  28. - coop-cloud.${STACK_NAME}.app.version=2.0.3-eec92a23
  29. networks:
  30. proxy:
  31. external: true
  32. volumes:
  33. data: