docker-compose.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. version: '3.7'
  2. services:
  3. redmine:
  4. ports:
  5. - '8089:3000'
  6. image: 'redmine:4.1.1-alpine'
  7. container_name: 'redmine-web'
  8. depends_on:
  9. - db-postgres
  10. # healthcheck:
  11. # test: ["CMD", "curl", "-f", "http://localhost:8089"]
  12. # interval: 1m30s
  13. # timeout: 10s
  14. # retries: 3
  15. # start_period: 40s
  16. restart: unless-stopped
  17. environment:
  18. REDMINE_DB_POSTGRES: db-postgres
  19. REDMINE_DB_PORT: 5432
  20. REDMINE_DB_DATABASE: redmine
  21. REDMINE_DB_USERNAME: redmine-usr
  22. REDMINE_DB_PASSWORD: redmine-pswd
  23. networks:
  24. - redmine-network
  25. stop_grace_period: 30s
  26. volumes:
  27. - redmine-data:/usr/src/redmine/files
  28. db-postgres:
  29. environment:
  30. POSTGRES_DB: redmine
  31. POSTGRES_USER: redmine-usr
  32. POSTGRES_PASSWORD: redmine-pswd
  33. container_name: 'redmine-db'
  34. image: 'postgres:11.1-alpine'
  35. healthcheck:
  36. test: ["CMD-SHELL", "pg_isready -U postgres"]
  37. interval: 20s
  38. timeout: 20s
  39. retries: 5
  40. restart: unless-stopped
  41. ports:
  42. - '5432:5432'
  43. volumes:
  44. - postgres-data:/var/lib/postgresql/data
  45. networks:
  46. - redmine-network
  47. stop_grace_period: 30s
  48. volumes:
  49. postgres-data:
  50. redmine-data:
  51. networks:
  52. redmine-network:
  53. driver: bridge