-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
141 lines (127 loc) · 4.17 KB
/
docker-compose.yml
File metadata and controls
141 lines (127 loc) · 4.17 KB
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
version: '2'
services:
### Nginx container #########################################
nginx:
build:
context: ./build/nginx
args:
TIME_ZONE: ${GLOBAL_TIME_ZONE}
privileged: true
ports:
- "${HTTP_PORT}:80"
- "${HTTPS_PORT}:443"
links:
- "${PHP_VERSION}"
volumes:
- ${GLOBAL_APP_PATH}work/wwwroot:/etc/nginx/html/
- ${GLOBAL_APP_PATH}work/common/nginx/config/conf.d:/etc/nginx/conf.d
- ${GLOBAL_APP_PATH}work/common/nginx/log:/var/log/nginx
### PHP container #########################################
php71:
build:
context: ./build/php71
args:
TIME_ZONE: ${GLOBAL_TIME_ZONE}
CHANGE_SOURCE: ${GLOBAL_CHANGE_SOURCE}
privileged: true
ports:
- "9001:9000"
links:
- "mysql"
- "redis"
volumes:
- ${GLOBAL_APP_PATH}work/wwwroot:/etc/nginx/html
- ${GLOBAL_APP_PATH}work/common/php71/config/php.ini:/usr/local/etc/php/php.ini
- ${GLOBAL_APP_PATH}work/common/php71/log:/var/log
php73:
build:
context: ./build/php73
args:
TIME_ZONE: ${GLOBAL_TIME_ZONE}
CHANGE_SOURCE: ${GLOBAL_CHANGE_SOURCE}
privileged: true
ports:
- "9003:9000"
links:
- "mysql"
- "redis"
volumes:
- ${GLOBAL_APP_PATH}work/wwwroot:/etc/nginx/html
- ${GLOBAL_APP_PATH}work/common/php73/config/php.ini:/usr/local/etc/php/php.ini
- ${GLOBAL_APP_PATH}work/common/php73/log:/var/log
php74:
build:
context: ./build/php74
args:
TIME_ZONE: ${GLOBAL_TIME_ZONE}
CHANGE_SOURCE: ${GLOBAL_CHANGE_SOURCE}
privileged: true
ports:
- "9004:9000"
links:
- "mysql"
- "redis"
volumes:
- ${GLOBAL_APP_PATH}work/wwwroot:/etc/nginx/html
- ${GLOBAL_APP_PATH}work/common/php74/config/php.ini:/usr/local/etc/php/php.ini
- ${GLOBAL_APP_PATH}work/common/php74/log:/var/log
php8:
build:
context: ./build/php8
args:
TIME_ZONE: ${GLOBAL_TIME_ZONE}
CHANGE_SOURCE: ${GLOBAL_CHANGE_SOURCE}
privileged: true
ports:
- "9008:9000"
links:
- "mysql"
- "redis"
volumes:
- ${GLOBAL_APP_PATH}work/wwwroot:/etc/nginx/html
- ${GLOBAL_APP_PATH}work/common/php8/config/php.ini:/usr/local/etc/php/php.ini
- ${GLOBAL_APP_PATH}work/common/php8/log:/var/log
### Mysql container #########################################
mysql:
build:
context: ./build/mysql
args:
TIME_ZONE: ${GLOBAL_TIME_ZONE}
CHANGE_SOURCE: ${GLOBAL_CHANGE_SOURCE}
privileged: true
ports:
- "${MYSQL_PORT}:3306"
volumes:
- ${GLOBAL_APP_PATH}work/common/mysql/data:/var/lib/mysql
- ${GLOBAL_APP_PATH}work/common/mysql/config/mysql.cnf:/etc/mysql/conf.d/mysql.cnf
- ${GLOBAL_APP_PATH}work/common/mysql/log/error.log:/var/log/mysql/error.log
- ${GLOBAL_APP_PATH}work/common/mysql/backup:/var/backup
- ${GLOBAL_APP_PATH}work/common/mysql/crontabs:/var/spool/cron/crontabs
- ${GLOBAL_APP_PATH}work/common/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
### Mongo container #########################################
mongodb:
build:
context: ./build/mongo
args:
TIME_ZONE: ${GLOBAL_TIME_ZONE}
privileged: true
ports:
- "${MONGO_PORT}:27017"
volumes:
- ${GLOBAL_APP_PATH}work/common/mongo/config/mongo.conf:/usr/local/etc/mongo/mongo.conf
- ${GLOBAL_APP_PATH}work/common/mongo/log/:/var/log/mongodb
- ${GLOBAL_APP_PATH}work/common/mongo/data:/var/lib/mongodb
### Redis container #########################################
redis:
build:
context: ./build/redis
args:
TIME_ZONE: ${GLOBAL_TIME_ZONE}
privileged: true
ports:
- "${REDIS_PORT}:6379"
volumes:
- ${GLOBAL_APP_PATH}work/common/redis/config/redis.conf:/usr/local/etc/redis/redis.conf
- ${GLOBAL_APP_PATH}work/common/redis/log/redis.log:/var/log/redis/redis.log