docker-compose.deploy.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Docker Compose config used for internal test and QA deployments
  2. # This just spins up the AIO container along with an attached DB to the standard HTTP ports with subpath access mode
  3. # TODO: Add Healthcheck for the AIO container
  4. version: "3.7"
  5. services:
  6. # The service that spins up all 3 services at once in one container
  7. hoppscotch-aio:
  8. container_name: hoppscotch-aio
  9. restart: unless-stopped
  10. build:
  11. dockerfile: prod.Dockerfile
  12. context: .
  13. target: aio
  14. environment:
  15. - DATABASE_URL=postgresql://postgres:testpass@hoppscotch-db:5432/hoppscotch
  16. - ENABLE_SUBPATH_BASED_ACCESS=true
  17. depends_on:
  18. hoppscotch-db:
  19. condition: service_healthy
  20. ports:
  21. - "3080:80"
  22. # The preset DB service, you can delete/comment the below lines if
  23. # you are using an external postgres instance
  24. # This will be exposed at port 5432
  25. hoppscotch-db:
  26. image: postgres:15
  27. ports:
  28. - "5432:5432"
  29. user: postgres
  30. environment:
  31. # The default user defined by the docker image
  32. POSTGRES_USER: postgres
  33. # NOTE: Please UPDATE THIS PASSWORD!
  34. POSTGRES_PASSWORD: testpass
  35. POSTGRES_DB: hoppscotch
  36. healthcheck:
  37. test:
  38. [
  39. "CMD-SHELL",
  40. "sh -c 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'"
  41. ]
  42. interval: 5s
  43. timeout: 5s
  44. retries: 10