Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

docker-compose.yml 1.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. version: "3"
  2. services:
  3. db:
  4. restart: always
  5. image: postgres:9.5
  6. volumes:
  7. - postgresql:/var/lib/postgresql/data
  8. environment:
  9. - POSTGRES_DB=${DATABASE_NAME}
  10. - POSTGRES_USER=${DATABASE_USER}
  11. - POSTGRES_PASSWORD=${DATABASE_PASSWORD}
  12. backend:
  13. restart: always
  14. image: quay.io/lesspass/backend:latest
  15. links:
  16. - db
  17. environment:
  18. - ALLOWED_HOSTS
  19. - DATABASE_ENGINE
  20. - DATABASE_HOST
  21. - DATABASE_NAME
  22. - DATABASE_USER
  23. - DATABASE_PASSWORD
  24. - DATABASE_PORT
  25. - DEBUG
  26. - SECRET_KEY
  27. - FRONTEND_HOST
  28. - EMAIL_BACKEND
  29. - DEFAULT_FROM_EMAIL
  30. - EMAIL_HOST
  31. - EMAIL_HOST_USER
  32. - EMAIL_HOST_PASSWORD
  33. - EMAIL_PORT
  34. - EMAIL_USE_TLS
  35. volumes:
  36. - www:/opt/backend/www
  37. frontend:
  38. restart: always
  39. image: quay.io/lesspass/frontend:latest
  40. webserver:
  41. restart: always
  42. image: quay.io/lesspass/webserver:latest
  43. ports:
  44. - 80:80
  45. - 443:443
  46. links:
  47. - backend
  48. - frontend
  49. environment:
  50. - FQDN
  51. - EMAIL
  52. - CRT_PATH
  53. - KEY_PATH
  54. volumes:
  55. - ${PWD}/${CRT_PATH}:/usr/local/apache2/conf/${CRT_PATH}:Z
  56. - ${PWD}/${KEY_PATH}:/usr/local/apache2/conf/${KEY_PATH}:Z
  57. - www:/var/www/html/
  58. volumes:
  59. postgresql:
  60. www: