docker-compose.debug.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. version: '3.4'
  2. services:
  3. postgres:
  4. # image: 'registry.cn-hangzhou.aliyuncs.com/kennylee/postgresql:12.4'
  5. container_name: db_postgres
  6. image: postgres:16.0
  7. environment:
  8. POSTGRES_DB: chat
  9. POSTGRES_USER: root
  10. POSTGRES_PASSWORD: root1234
  11. ports:
  12. - 5432:5432
  13. volumes:
  14. - postgres-data:/var/lib/postgresql/data
  15. restart: unless-stopped
  16. networks:
  17. - app-network
  18. logging:
  19. driver: 'json-file'
  20. options:
  21. max-size: '12m'
  22. max-file: '5'
  23. mariadb:
  24. container_name: mariadb_container
  25. image: mariadb:10.3
  26. restart: always
  27. environment:
  28. MYSQL_ROOT_PASSWORD: root1234
  29. MYSQL_DATABASE: chat
  30. MYSQL_USER: lyq
  31. MYSQL_PASSWORD: lyq121212
  32. volumes:
  33. - ./mariadb:/var/lib/mysql
  34. # - ./dev/mariadb:/docker-entrypoint-initdb.d
  35. networks:
  36. - app-network
  37. mysql:
  38. container_name: mysql-container
  39. # image: mysql:8.1.0
  40. image: mysql:5.6
  41. restart: unless-stopped
  42. volumes:
  43. - ./mysql:/var/lib/mysql
  44. # - db_data:/var/lib/mysql
  45. environment:
  46. MYSQL_DATABASE: chat
  47. MYSQL_USER: lyq
  48. MYSQL_PASSWORD: lyq121212
  49. MYSQL_ROOT_PASSWORD: root1234
  50. ports:
  51. - 3306:3306
  52. networks:
  53. - app-network
  54. phpmyadmin:
  55. image: phpmyadmin/phpmyadmin:latest
  56. # image: phpmyadmin/phpmyadmin:5.2.1-fpm-alpine # has bug
  57. ports:
  58. - 8089:80
  59. # restart: unless-stopped
  60. environment:
  61. PMA_HOST: mysql
  62. # PMA_ARBITRARY: 1
  63. MYSQL_ROOT_PASSWORD: root1234
  64. depends_on:
  65. - mysql
  66. networks:
  67. - app-network
  68. adminer:
  69. image: adminer:latest
  70. ports:
  71. - 8080:8080
  72. environment:
  73. ADMINER_DEFAULT_SERVER: mysql
  74. depends_on:
  75. - mysql
  76. - postgres
  77. - mariadb
  78. networks:
  79. - app-network
  80. volumes:
  81. mariadb-data:
  82. mysql-data:
  83. postgres-data:
  84. networks:
  85. app-network:
  86. driver: bridge