-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml.bak
109 lines (100 loc) · 2.76 KB
/
docker-compose.yml.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: "3.3"
networks:
webnet:
services:
##nginx proxy
espier-nginx-proxy:
image: nginx:stable-alpine
ports:
#按照需要修改你的端口 自己的端口:docker端口 请只改 自己的端口
- "8080:8080"
links:
- espier-bloated-web
- phpmyadmin
- ecshop-admin-build
volumes:
- "./config/nginx/:/etc/nginx/conf.d"
- "${CODE_DATA}/:/usr/share/nginx/html"
networks:
- webnet
###espier-bloated-web
espier-bloated-web:
environment:
APP_ENV: dev
CONTAINER_ROLE: web
entrypoint: php-fpm
# replace username/repo:tag with your name and image details
image: "${PHP_COMPOSER_IMAGE}"
ports:
- "8085:8005"
links:
- mysql
- neo4j
- redis
volumes:
- "./config/phpfpm/php-fpm.conf:/usr/local/etc/php-fpm.conf"
- "./config/phpfpm/php.ini:/usr/local/etc/php/php.ini"
#zl文件请自行修改当前目录下/config/phpfpm/docker-php-ext-swoole-compiler.ini中的swoole_license_files 不用重启,及时生效
- "./config/phpfpm/docker-php-ext-swoole-compiler.ini:/usr/local/etc/php/conf.d/docker-php-ext-swoole-compiler.ini"
- "${CODE_DATA}:/app"
networks:
- webnet
redis:
image: 'bitnami/redis:4.0.14-r61'
ports:
- '6379'
environment:
- REDIS_REPLICATION_MODE=master
- REDIS_PASSWORD=123456
volumes:
- ${STORAGE_PATH}/redis:/bitnami
networks:
- webnet
neo4j:
image: 'neo4j'
ports:
- '7474:7474'
- '7687:7687'
volumes:
- ${STORAGE_PATH}/neo4j:/data
networks:
- webnet
mysql:
image: mysql:5.7
hostname: mysql
ports:
- "8806:3306"
volumes:
- ${STORAGE_PATH}/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
networks:
- webnet
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
ports:
- "8004:80"
links:
- mysql
environment:
- PMA_HOST=mysql
networks:
- webnet
### 不同版本对应不同的node版本,推荐使用12,可以使用13
ecshop-admin-build:
image: node:12-alpine
environment:
PRODUCT_MODEL: standard
IS_SAAS: "false"
PORT: 4000
BUILD_DIR: /usr/share/nginx/html/app
entrypoint:
- sh
#此处的编译脚本请按照实际项目填写 /usr/share/nginx/html 这是映射目录,不要动,改后边的 直接watch 不适合一个docker-composer满足不同项目,请自行更改composer文件
- /usr/share/nginx/html/docker/build_dev.sh
volumes:
- "${CODE_DATA}/espier-shop:/usr/share/nginx/html"
- "${STORAGE_PATH}/node:/usr/share/nginx/node"
networks:
- webnet
#- "./bloated/files/scheduler/crontabs/root:/var/spool/cron/crontabs/root"