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.

76 lines
1.6 KiB

  1. version: "2"
  2. services:
  3. web:
  4. image: nginx
  5. container_name: nginx
  6. ports:
  7. - "80:80"
  8. restart: always
  9. volumes:
  10. - ./nginx/conf:/etc/nginx
  11. - ./nginx/log:/var/log/nginx
  12. - /home/www:/www
  13. networks:
  14. - dlc-dev-network
  15. depends_on:
  16. - php
  17. mysql:
  18. image: mysql
  19. container_name: mysql
  20. command: --default-authentication-plugin=mysql_native_password
  21. restart: always
  22. volumes:
  23. - ./mysql/etc:/etc/mysql
  24. - ./mysql/data:/var/lib/mysql
  25. environment:
  26. - MYSQL_ROOT_PASSWORD=73937393
  27. - MYSQL_USER=antsys
  28. - MYSQL_PASSWORD=73937393
  29. - MYSQL_DATABASE=antsys
  30. networks:
  31. - dlc-dev-network
  32. php:
  33. image: ww519441258/php7.3:0.2.0
  34. #image: hollodotme/php71-fpm-redis-mysql
  35. container_name: php
  36. restart: always
  37. volumes:
  38. - /home/www:/www
  39. - ./php-fpm/etc:/usr/local/etc/php
  40. depends_on:
  41. - mongodb
  42. - mysql
  43. - redis
  44. networks:
  45. - dlc-dev-network
  46. mongodb:
  47. image: mongo
  48. container_name: mongo
  49. restart: always
  50. volumes:
  51. - ./mongodb/data:/data/db
  52. - ./mongodb/log:/data/logs
  53. environment:
  54. - MONGO_INITDB_ROOT_USERNAME=root
  55. - MONGO_INITDB_ROOT_PASSWORD=73937393
  56. networks:
  57. - dlc-dev-network
  58. redis:
  59. image: redis
  60. container_name: redis
  61. restart: always
  62. command: [
  63. "bash", "-c",
  64. '
  65. docker-entrypoint.sh
  66. --requirepass "73937393"
  67. '
  68. ]
  69. volumes:
  70. - ./redis/etc:/usr/local/etc/redis
  71. - ./redis/data:/data
  72. networks:
  73. - dlc-dev-network
  74. networks:
  75. dlc-dev-network:
  76. driver: bridge