-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
169 lines (167 loc) · 3.67 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
version: '3.5'
networks:
backend:
driver: bridge
services:
# golang.test:
# container_name: golang
# image: golang:1.8
# build:
# context: ./golang
# dockerfile: Dockerfile
# ports:
# - "8080:8080"
# - "10000:22"
# - "8888:8888"
# networks:
# - backend
# stdin_open: true
# tty: true
# volumes:
# - '.:/whitebench'
# depends_on:
# - mysql.test
# - redis.test
# php8.test:
# container_name: php8.0
# image: php:8.0
# build:
# context: ./php8
# dockerfile: Dockerfile
# ports:
# - "8081:8081"
# - "10001:22"
# networks:
# - backend
# environment:
# - TZ=Asia/Shanghai
# stdin_open: true
# tty: true
# volumes:
# - './php8/logs:/var/log/php8'
# - '.:/whitebench'
# - './php8/etc/php81.ini:/usr/local/etc/php8/php81.ini'
# depends_on:
# - mysql.test
# - redis.test
# php81.test:
# container_name: php8.1
# image: php:8.1
# build:
# context: ./php81
# dockerfile: Dockerfile
# ports:
# - "8084:8084"
# - "10004:22"
# - "5173:5173"
# networks:
# - backend
# environment:
# - TZ=Asia/Shanghai
# stdin_open: true
# tty: true
# volumes:
# - './php81/logs:/var/log/php'
# - '.:/whitebench'
# - './php81/etc/php81.ini:/usr/local/etc/php/php.ini'
# depends_on:
# - mysql.test
# - redis.test
# - mongodb
php74.test:
container_name: php7.4
image: php:7.4
build:
context: ./php74
dockerfile: Dockerfile
ports:
- "8082:8082"
- "10002:22"
- "9000:9000"
networks:
- backend
environment:
- TZ=Asia/Shanghai
stdin_open: true
tty: true
volumes:
- './php74/logs:/var/log/php7.4'
- '.:/whitebench'
- './php74/etc/php7.4.ini:/usr/local/etc/php7.4/php7.4.ini'
- './nginx/html:/usr/share/nginx/html'
depends_on:
- mysql.test
- redis.test
- mongodb
nginx:
container_name: nginx
image: nginx:latest
ports:
- "80:80"
networks:
- backend
volumes:
- './nginx/nginx.conf:/etc/nginx/nginx.conf'
- './nginx/html:/usr/share/nginx/html'
- '.:/whitebench'
- './nginx/conf.d:/etc/nginx/conf.d'
depends_on:
- php74.test
# php72.test:
# container_name: php7.2
# image: php:7.2
# build:
# context: php72
# dockerfile: Dockerfile
# ports:
# - "8083:8083"
# - "10003:22"
# networks:
# - backend
# environment:
# - TZ=Asia/Shanghai
# stdin_open: true
# tty: true
# volumes:
# - './php72/logs:/var/log/php7.1'
# - '.:/whitebench'
# - './php72/etc/php7.2.ini:/usr/local/etc/php7.1/php7.2.ini'
# depends_on:
# - mysql.test
# - redis.test
mysql.test:
container_name: mysql8.0
image: mysql:8.0
build:
context: ./mysql
environment:
- MYSQL_ROOT_PASSWORD=123456
volumes:
- './mysql/data:/var/lib/mysql'
- './mysql/conf:/etc/mysql/conf.d'
ports:
- "3306:3306"
networks:
- backend
redis.test:
container_name: redis_dev
image: redis:5.0
build: ./redis
volumes:
- '/data/redis:/data'
ports:
- "6379:6379"
networks:
- backend
mongodb:
container_name: mongodb
image: mongo:5.0.5
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=123456
volumes:
- '/data/mongodb:/data'
networks:
- backend