Advertisement
doctorase

tandoor compose

Mar 21st, 2024
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. version: "3.9"
  2. services:
  3. db:
  4. image: postgres:16
  5. container_name: Tandoor-DB
  6. hostname: tandoor-db
  7. security_opt:
  8. - no-new-privileges:true
  9. healthcheck:
  10. test: ["CMD", "pg_isready", "-q", "-d", "tandoor", "-U", "tandooruser"]
  11. timeout: 45s
  12. interval: 10s
  13. retries: 10
  14. volumes:
  15. - /volume3/docker/tandoor/db:/var/lib/postgresql/data
  16. env_file:
  17. - stack.env
  18. restart: always
  19.  
  20. tandoor:
  21. image: vabene1111/recipes:latest
  22. container_name: Tandoor
  23. hostname: tandoor
  24. security_opt:
  25. - no-new-privileges:true
  26. healthcheck:
  27. test: wget --no-verbose --tries=1 --spider http://localhost:8080 || exit 1
  28. volumes:
  29. - /volume3/docker/tandoor/staticfiles:/opt/recipes/staticfiles
  30. - /volume3/docker/tandoor/mediafiles:/opt/recipes/mediafiles
  31. - /volume3/docker/tandoor/nginx:/opt/recipes/nginx/conf.d
  32. env_file:
  33. - stack.env
  34. restart: always
  35. depends_on:
  36. db:
  37. condition: service_started
  38.  
  39. nginx:
  40. image: nginx:mainline-alpine
  41. container_name: Tandoor-NGINX
  42. hostname: nginx-tandoor
  43. security_opt:
  44. - no-new-privileges:true
  45. healthcheck:
  46. test: wget --no-verbose --tries=1 --spider http://localhost:80 || exit 1
  47. volumes:
  48. - /volume3/docker/tandoor/staticfiles:/static:ro
  49. - /volume3/docker/tandoor/mediafiles:/media:ro
  50. - /volume3/docker/tandoor/nginx:/etc/nginx/conf.d:ro
  51.  
  52. ports:
  53. - 9815:80
  54. env_file:
  55. - stack.env
  56. restart: always
  57. depends_on:
  58. tandoor:
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement