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.

85 lines
2.2 KiB

  1. version: "2"
  2. services:
  3. web:
  4. image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/nginx
  5. ports:
  6. - "88:80"
  7. restart: always
  8. volumes:
  9. - ./app:/www/web
  10. - ./services/web/nginx/conf:/etc/nginx
  11. - ./services/web/nginx/logs:/www/web_logs
  12. networks:
  13. - code-network
  14. depends_on:
  15. - php
  16. mysql:
  17. image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/mysql
  18. restart: always
  19. volumes:
  20. - ./db/mysql/data:/var/lib/mysql
  21. - ./db/mysql/example_db:/var/example_db
  22. - ./db/mysql/conf.d:/etc/mysql/conf.d
  23. restart: always
  24. environment:
  25. - MYSQL_ROOT_PASSWORD=fecshopxfd3ffaads123456
  26. - MYSQL_DATABASE=fecshop
  27. networks:
  28. - code-network
  29. php:
  30. image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/php-7.1.13-fpm_2
  31. restart: always
  32. volumes:
  33. - ./app:/www/web
  34. - ./services/php/etc/php7.1.13.ini:/usr/local/etc/php/conf.d/php7.1.13.ini
  35. depends_on:
  36. - mongodb
  37. - mysql
  38. networks:
  39. - code-network
  40. mongodb:
  41. image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/mongo
  42. restart: always
  43. environment:
  44. - MONGO_DATA_DIR=/data/db
  45. - MONGO_LOG_DIR=/data/logs
  46. volumes:
  47. - ./db/mongodb/data:/data/db
  48. - ./db/mongodb/example_db:/data/example_db
  49. - ./db/mongodb/logs:/data/logs
  50. networks:
  51. - code-network
  52. xunsearch:
  53. image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/xunsearch
  54. restart: always
  55. volumes:
  56. - ./db/xunsearch/data:/usr/local/xunsearch/data
  57. networks:
  58. - code-network
  59. redis:
  60. image: registry.cn-hangzhou.aliyuncs.com/fecshopsoft/redis
  61. restart: always
  62. environment:
  63. REDIS_PASS_FILE: /run/secrets/redis-password
  64. command: [
  65. "bash", "-c",
  66. '
  67. docker-entrypoint.sh
  68. --requirepass "$$(cat $$REDIS_PASS_FILE)"
  69. '
  70. ]
  71. volumes:
  72. - ./db/redis/etc/redis.conf:/usr/local/etc/redis/redis.conf
  73. - ./db/redis/data:/data
  74. - ./db/redis/etc/redis-password:/run/secrets/redis-password
  75. networks:
  76. - code-network
  77. networks:
  78. code-network:
  79. driver: bridge