Encrypted messaging app
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.

49 lines
965 B

  1. version: "3"
  2. services:
  3. server:
  4. build:
  5. context: ./Backend
  6. ports:
  7. - "8080:8080"
  8. volumes:
  9. - "./Backend:/app"
  10. links:
  11. - postgres
  12. - postgres-testing
  13. depends_on:
  14. postgres:
  15. condition: service_healthy
  16. depends_on:
  17. postgres-testing:
  18. condition: service_healthy
  19. postgres:
  20. image: postgres:14.5
  21. ports:
  22. - "54321:5432"
  23. environment:
  24. POSTGRES_DB: capsule
  25. POSTGRES_PASSWORD: password
  26. volumes:
  27. - /var/lib/postgres
  28. healthcheck:
  29. test: ["CMD-SHELL", "pg_isready -U postgres"]
  30. interval: 5s
  31. timeout: 5s
  32. retries: 5
  33. postgres-testing:
  34. image: postgres:14.5
  35. ports:
  36. - "54322:5432"
  37. environment:
  38. POSTGRES_DB: capsule-testing
  39. POSTGRES_PASSWORD: password
  40. tmpfs:
  41. - /var/lib/mysql
  42. healthcheck:
  43. test: ["CMD-SHELL", "pg_isready -U postgres"]
  44. interval: 5s
  45. timeout: 5s
  46. retries: 5