-
Notifications
You must be signed in to change notification settings - Fork 81
/
docker-compose-fast.yml
89 lines (88 loc) · 1.87 KB
/
docker-compose-fast.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
version: '3'
services:
cgi:
container_name: cgi
image: registry.cn-beijing.aliyuncs.com/duiying/php7.2:1.0
tty: true
restart: always
expose:
- "9000"
volumes:
- ./www:/data/www
- ./docker/log/cgi:/var/log/php-fpm
depends_on:
- mysql
- redis
links:
- mysql:mysql
- redis:redis
proxy:
container_name: proxy
image: registry.cn-beijing.aliyuncs.com/duiying/nginx:1.0
tty: true
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./www:/data/www
- ./docker/config/proxy/conf.d:/etc/nginx/conf.d
- ./docker/log/proxy:/var/log/nginx
depends_on:
- cgi
links:
- cgi
mysql:
container_name: mysql
image: daocloud.io/library/mysql:5.6
restart: always
expose:
- "3306"
ports:
- "3306:3306"
volumes:
- ./docker/data/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
redis:
container_name: redis
image: daocloud.io/library/redis
restart: always
expose:
- "6379"
ports:
- "6379:6379"
volumes:
- ./docker/data/redis:/data
command: redis-server --appendonly yes
phpmyadmin:
container_name: phpmyadmin
image: daocloud.io/daocloud/phpmyadmin
expose:
- '80'
ports:
- "8080:80"
environment:
- PMA_ARBITRARY=0
- PMA_HOST=mysql
# 如果取消下面两行注释, phpmyadmin就不用输入用户名和密码, 可以直接登录
# - PMA_USER=root
# - PMA_PASSWORD=root
depends_on:
- mysql
links:
- mysql:mysql
phpredisadmin:
container_name: phpredisadmin
image: erikdubbelboer/phpredisadmin
expose:
- '80'
ports:
- "8081:80"
environment:
- REDIS_1_HOST=redis
- REDIS_1_NAME=redis
depends_on:
- redis
links:
- redis:redis