-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (68 loc) · 1.79 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
version: "3.3"
services:
nginx:
image: nginx:1.15.5
restart: always
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./www:/usr/share/nginx/html:ro
- ./logs:/var/log/nginx
- ./conf/nginx.conf:/etc/nginx/nginx.conf:ro
- ./conf/conf.d:/etc/nginx/conf.d
mysql:
image: mysql:5.7.23
restart: always
container_name: mysql
ports:
- "3306:3306"
volumes:
- ./conf/mysql.cnf:/etc/mysql/conf.d/mysql.cnf:ro
- ./mysql/:/var/lib/mysql/:rw
environment:
MYSQL_USER: sangoes
MYSQL_PASSWORD: "Sangoes123456"
MYSQL_ROOT_PASSWORD: "Sangoes123456"
redis:
image: redis:4.0.11
restart: always
container_name: redis
command: redis-server /usr/local/etc/redis/redis.conf
ports:
- "6379:6379"
volumes:
- ./redis/data:/data
- ./conf/redis.conf:/usr/local/etc/redis/redis.conf
rabbit:
image: rabbitmq:management
hostname: rabbit
restart: always
container_name: rabbit
ports:
- "4369:4369"
- "5671:5671"
- "5672:5672"
- "15671:15671"
- "15672:15672"
environment:
- RABBITMQ_DEFAULT_USER=sangoes
- RABBITMQ_DEFAULT_PASS=Sangoes123456
wordpress:
image: wordpress:latest
hostname: wordpress
restart: always
container_name: wordpress
ports:
- "8282:80"
environment:
- WORDPRESS_DB_HOST=mysql
- WORDPRESS_DB_USER=root
- WORDPRESS_DB_PASSWORD=root
- WORDPRESS_DB_NAME=xbclub
- WORDPRESS_TABLE_PREFIX=wp_
volumes:
- ./www:/var/www/html:rw
- ./php/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini:ro
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro