likeshop/docker/docker-compose.yml
2022-09-29 16:26:02 +08:00

100 lines
2.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#// +----------------------------------------------------------------------
#// | likeshop100%开源免费商用商城系统
#// +----------------------------------------------------------------------
#// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
#// | 开源版本可自由商用可去除界面版权logo
#// | 商业版本务必购买商业授权,以免引起法律纠纷
#// | 禁止对系统程序代码以任何目的,任何形式的再发布
#// | 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团队 版权所有 拥有最终解释权
#// +----------------------------------------------------------------------
#// | author: likeshopTeam
#// +----------------------------------------------------------------------
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
image: likeshop/php:7.2.34-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"