This is an API service to send emails and other information based on templates and double opt-ins from form submissions https://forms.fsfe.org
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.

docker-compose.yml 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # =============================================================================
  2. # Deployment instructions for the Docker container
  3. # =============================================================================
  4. # This file is part of the FSFE Form Server.
  5. #
  6. # Copyright © 2017-2019 Free Software Foundation Europe <contact@fsfe.org>
  7. #
  8. # The FSFE Form Server is free software: you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by the Free
  10. # Software Foundation, either version 3 of the License, or (at your option) any
  11. # later version.
  12. #
  13. # The FSFE Form Server is distributed in the hope that it will be useful, but
  14. # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  15. # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  16. # details <http://www.gnu.org/licenses/>.
  17. # =============================================================================
  18. version: '3'
  19. services:
  20. forms-redis:
  21. image: redis:3.2
  22. container_name: forms-redis
  23. labels:
  24. fsfe-monitoring: "true"
  25. expose:
  26. - 6379
  27. restart: always
  28. forms:
  29. depends_on:
  30. - forms-redis
  31. image: forms
  32. build: .
  33. container_name: forms
  34. labels:
  35. fsfe-monitoring: "true"
  36. environment:
  37. VIRTUAL_HOST: "forms.fsfe.org"
  38. LETSENCRYPT_HOST: "forms.fsfe.org"
  39. LETSENCRYPT_EMAIL: "contact@fsfe.org"
  40. RATELIMIT_DEFAULT: "1 per second, 5 per minute, 20 per hour"
  41. MAIL_SERVER: "mail.fsfe.org"
  42. LOG_EMAIL_FROM: "contact@fsfe.org"
  43. LOG_EMAIL_TO: "contact@fsfe.org"
  44. REDIS_HOST: "forms-redis"
  45. REDIS_PORT: "6379"
  46. volumes:
  47. - "/srv/forms:/store:rw"
  48. restart: always
  49. connect-bridge:
  50. depends_on:
  51. - forms
  52. image: docker:dind
  53. volumes:
  54. - /var/run/docker.sock:/var/run/docker.sock
  55. command: docker network connect bridge forms