-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
141 lines (134 loc) · 4.33 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
version: '3'
services:
consul-server-leader:
image: consul:latest
restart: always
container_name: consul-server-leader
command: "agent -server -bootstrap -ui -node=consul-server-leader -client=0.0.0.0"
volumes:
- ./consul/conf:/consul/config
- ./consul/data:/consul/data
environment:
- CONSUL_BIND_INTERFACE=eth0
- 'CONSUL_LOCAL_CONFIG={"connect": {"enabled": true}}'
ports:
- "8500:8500"
nginx:
image: nginx:stable-alpine-perl
restart: always
privileged: true
container_name: nginx
working_dir: /wwwroot
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/fastcgi_params:/etc/nginx/fastcgi_params
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./logs/nginx:/var/log/nginx
- ../wwwroot:/wwwroot
- /usr/share/nginx/html:/usr/share/nginx/html
- /etc/localtime:/etc/localtime:ro
mysql:
image: mysql:5.7
restart: always
container_name: php-mysql-5-7
privileged: true
volumes:
- ./mysql/conf:/etc/mysql
- /var/lib/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
command:
--default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true
ports:
- "3306:3306"
redis:
image: redis:6.0.10
restart: always
container_name: redis
privileged: true
command: redis-server /etc/redis/redis.conf
ports:
- "6379:6379"
volumes:
- ./redis/redis.conf:/etc/redis/redis.conf
- ./redis/data:/data
# grpc-skeleton:
# build:
# context: ./gRPC/
# dockerfile: Dockerfile
# restart: always
# privileged: true
# container_name: grpc-skeleton
# working_dir: /wwwroot
# volumes:
# - ../wwwroot:/wwwroot
# ports:
# - "8000:8080"
# - "8001:8081"
# tty: true
swoole:
image: gnfy/swoole-fpm:1.1
#build:
# context: ./swoole/
# dockerfile: Dockerfile
restart: always
privileged: true
container_name: swoole-4-8-1
working_dir: /wwwroot
ports:
- "9000:9000"
- "9501:9501"
- "9502:9502"
volumes:
- ../wwwroot:/wwwroot
- ./php/php.ini:/usr/local/etc/php/php.ini
- ./logs/php:/usr/local/var/log
- ./php/php-fpm.d:/usr/local/etc/php-fpm.d
- /usr/share/nginx/html:/usr/share/nginx/html
tm-php:
image: gnfy/tm-php:1.1
#build:
# context: ./php7.0.33/
# dockerfile: Dockerfile
restart: always
privileged: true
container_name: tm-php-1-1
working_dir: /wwwroot
ports:
- "9001:9000"
volumes:
- ../wwwroot:/wwwroot
- ../wwwroot:/home/wwwroot
- ./php7.0.33/php.ini:/usr/local/etc/php/php.ini
- ./logs/php7.0.33:/usr/local/var/log
- ./php7.0.33/php-fpm.d:/usr/local/etc/php-fpm.d
- /usr/share/nginx/html:/usr/share/nginx/html
# zipkin:
# image: openzipkin/zipkin
# container_name: zipkin
# privileged: true
# restart: always
# # environment:
# # - STORAGE_TYPE=mysql
# # # Point the zipkin at the storage backend
# # - MYSQL_DB=zipkin
# # - MYSQL_USER=root
# # - MYSQL_PASS=root
# # - MYSQL_HOST=php-mysql-5-7
# # - MYSQL_TCP_PORT=3306
# # # Uncomment to enable scribe
# # # - SCRIBE_ENABLED=true
# # # Uncomment to enable self-tracing
# # # - SELF_TRACING_ENABLED=true
# # # Uncomment to enable debug logging
# # # - JAVA_OPTS=-Dlogging.level.zipkin=DEBUG -Dlogging.level.zipkin2=DEBUG
# ports:
# # Port used for the Zipkin UI and HTTP Api
# - "9411:9411"