#+---------------------------------------------------------------------- # | likeshop开源商城系统 # +---------------------------------------------------------------------- # | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力 # | gitee下载:https://gitee.com/likeshop_gitee # | github下载:https://github.com/likeshop-github # | 访问官网:https://www.likeshop.cn # | 访问社区:https://home.likeshop.cn # | 访问手册:http://doc.likeshop.cn # | 微信公众号:likeshop技术社区 # | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用,未经许可不能去除前后端官方版权标识 # | likeshop系列产品收费版本务必购买商业授权,购买去版权授权后,方可去除前后端官方版权标识 # | 禁止对系统程序代码以任何目的,任何形式的再发布 # | likeshop团队版权所有并拥有最终解释权 # +---------------------------------------------------------------------- # | author: likeshop.cn.team # +---------------------------------------------------------------------- version: '3' networks: likeshop: driver: bridge services: nginx: container_name: likeshop-nginx image: nginx:1.17.0 restart: always depends_on: - "php7.2.4" volumes: - ../server:/server - ./config/nginx/conf.d:/etc/nginx/conf.d - ./log/nginx/logs:/logs networks: - likeshop ports: - "80:80" - "443:443" php7.2.4: container_name: likeshop-php7.2.4-fpm image: likeshop/php:7.2.4-fpm restart: always working_dir: /server volumes: - ../server:/server - ./config/php/php.ini:/usr/local/etc/php/php.ini networks: - likeshop ports: - "9004:9000" #user: "1000:1000" mysql: container_name: likeshop-mysql image: mysql:5.7.29 #X86架构 #image: amd64/mysql:5.7.29 #arm架构 restart: always environment: MYSQL_ROOT_PASSWORD: root volumes: - ./data/mysql5.7.29/lib:/var/lib/mysql - ./config/mysql/mysqld.cnf:/etc/mysql/my.cnf networks: - likeshop ports: - "3306:3306" redis: container_name: likeshop-redis image: redis:5.0.5 restart: always volumes: - ./data/redis:/data networks: - likeshop ports: - "6379:6379" node: container_name: likeshop-node image: node:10.15.3 restart: always volumes: - ../web:/web networks: - likeshop tty: true working_dir: /web ports: - "8080:8080"