-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
180 lines (159 loc) · 4.56 KB
/
docker-compose.yml
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
version: '2.6'
services:
nginx:
container_name: nginx1.21
image: ccr.ccs.tencentyun.com/tcb-87669051-ffhh/nginx:v20210707
ports:
# - "80:80"
# - "443:443"
- "9002:9002"
- "9003:9003"
volumes:
- ${WORKSPACES}:/var/www/html/:rw,cached
- ./conf/nginx/conf.d:/etc/nginx/conf.d/:ro,cached
- ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro,cached
- ./log/nginx/:/var/log/nginx/:rw,cached
links:
- php73:php73
# - php56:fpm56
environment:
- TZ=Asia/Shanghai
networks:
docker_net:
ipv4_address: ${NGINX_IP}
php73:
container_name: php73
# build: ./php/php73/
image: ccr.ccs.tencentyun.com/tcb-87669051-ffhh/php73:v0707
expose:
- "9000"
volumes:
- ${WORKSPACES}:/var/www/html/:rw,cached
- ./conf/php/php73.ini:/usr/local/etc/php/php.ini:ro,cached
- ./conf/php/php-fpm.d/www73.conf:/usr/local/etc/php-fpm.d/www.conf:rw,cached
- ./log/php-fpm/:/var/log/php-fpm/:rw,cached
- ./conf/certs/:/var/certs/:ro,cached
links:
# - mysql5:mysql
- mysql8:mysql
# - redis:redis
networks:
docker_net:
ipv4_address: ${PHP73_IP}
# mysql5:
# container_name: mysql5.6
# # image: mysql:5.6
# image: ccr.ccs.tencentyun.com/tcb-87669051-ffhh/mysql:v0707-5.6
# ports:
# - "3306:3306"
# volumes:
# - ./conf/mysql/my.cnf:/etc/mysql/my.cnf:ro,cached
# - ./mysql5-data/:/var/lib/mysql/:rw,cached
# - ./log/mysql5/:/var/log/mysql/:rw,cached
# environment:
# MYSQL_ROOT_PASSWORD: "root123456"
# networks:
# docker_net:
# ipv4_address: ${MYSQL_IP}
mysql8:
container_name: mysql8.0
image: ccr.ccs.tencentyun.com/tcb-saas/mysql8:v0719
ports:
- "3306:3306"
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- ./conf/mysql8/my.cnf:/etc/mysql/my.cnf
- ./mysql8-data/:/var/lib/mysql
- ./log/mysql8/:/var/log/mysql/:rw,cached
environment:
TZ: 'Asia/Shanghai'
MYSQL_ROOT_PASSWORD: 'root123456'
MYSQL_DATABASE: 'db'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'pass'
networks:
docker_net:
ipv4_address: ${MYSQL8_IP}
# redis:
# container_name: redis6.2
# # image: redis:latest
# image: ccr.ccs.tencentyun.com/tcb-87669051-ffhh/redis:v0707
# ports:
# - "6379:6379"
# networks:
# docker_net:
# ipv4_address: ${REDIS_IP}
portainer:
container_name: portainer1.24
# image: portainer/portainer:latest
image: ccr.ccs.tencentyun.com/tcb-87669051-ffhh/portainer:v0707
ports:
- "9001:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:cached
- ./portainer/:/data:cached
networks:
docker_net:
ipv4_address: ${PORTAINER_IP}
strapi:
container_name: strapi3.6
# image: strapi/strapi
# build: ./strapi-app/
# develop版本,每次启动时需要webpack编译一次
image: ccr.ccs.tencentyun.com/tcb-saas/strapi:v20210818
# product版本,已完成编译build,直接启动
# image: ccr.ccs.tencentyun.com/tcb-saas/strapi:v20210819
# environment:
# - DATABASE_CLIENT=mysql
# - DATABASE_HOST=mysql8
# - DATABASE_PORT=3306
# - DATABASE_NAME=db
# - DATABASE_USERNAME=user
# - DATABASE_PASSWORD=pass
ports:
- 9005:1337
links:
- mysql8:mysql8
volumes:
# - ./app:/srv/app
- ./strapi/conf:/srv/app/config:rw,cached
depends_on:
- mysql8
networks:
docker_net:
ipv4_address: ${STRAPI_IP}
nodejs:
container_name: nodejs14.17
image: ccr.ccs.tencentyun.com/tcb-saas/nodejs:v20210824
# build: ./nodejs/
ports:
- "9101:9101"
# - "9102:9102" #建议一个nodejs service容器只运行一个node app应用
volumes:
- ./nodejs/app:/srv/app:rw,cached
- ./conf/nodejs:/etc/nodejs:ro,cached
- ./log/nodejs/:/var/log/nodejs/:rw,cached
links:
- nginx:nginx
environment:
- TZ=Asia/Shanghai
networks:
docker_net:
ipv4_address: ${NODEJS_IP}
# homeassistant:
# container_name: homeassistant
# image: home-assistant
# volumes:
# - ./conf/homeassistant:/config
# - /etc/localtime:/etc/localtime:ro
# restart: unless-stopped
# privileged: true
# network_mode: host
networks:
docker_net:
driver: bridge
ipam:
driver: default
config:
-
subnet: "${DOCKER_SUBNET}"