docker-compose.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. version: "3.8"
  2. services:
  3. mysql:
  4. image: "mysql/mysql-server:8.0"
  5. ports:
  6. - "3306:3306"
  7. restart: always
  8. environment:
  9. MYSQL_DATABASE: dinotest
  10. MYSQL_ROOT_PASSWORD: mysecretpassword
  11. MYSQL_ROOT_HOST: '%'
  12. mysql5:
  13. image: "mysql/mysql-server:5.7"
  14. ports:
  15. - "3305:3306"
  16. restart: always
  17. environment:
  18. MYSQL_DATABASE: dinotest
  19. MYSQL_ROOT_PASSWORD: mysecretpassword
  20. MYSQL_ROOT_HOST: '%'
  21. profiles:
  22. - mysql
  23. postgresql:
  24. image: "postgres:15"
  25. ports:
  26. - "5432:5432"
  27. restart: always
  28. environment:
  29. POSTGRES_DB: postgres
  30. POSTGRES_PASSWORD: mysecretpassword
  31. POSTGRES_USER: postgres
  32. postgresql14:
  33. image: "postgres:14"
  34. ports:
  35. - "5414:5432"
  36. restart: always
  37. environment:
  38. POSTGRES_DB: postgres
  39. POSTGRES_PASSWORD: mysecretpassword
  40. POSTGRES_USER: postgres
  41. profiles:
  42. - postgres
  43. postgresql13:
  44. image: "postgres:13"
  45. ports:
  46. - "5413:5432"
  47. restart: always
  48. environment:
  49. POSTGRES_DB: postgres
  50. POSTGRES_PASSWORD: mysecretpassword
  51. POSTGRES_USER: postgres
  52. profiles:
  53. - postgres
  54. postgresql12:
  55. image: "postgres:12"
  56. ports:
  57. - "5412:5432"
  58. restart: always
  59. environment:
  60. POSTGRES_DB: postgres
  61. POSTGRES_PASSWORD: mysecretpassword
  62. POSTGRES_USER: postgres
  63. profiles:
  64. - postgres
  65. postgresql11:
  66. image: "postgres:11"
  67. ports:
  68. - "5411:5432"
  69. restart: always
  70. environment:
  71. POSTGRES_DB: postgres
  72. POSTGRES_PASSWORD: mysecretpassword
  73. POSTGRES_USER: postgres
  74. profiles:
  75. - postgres