-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
99 lines (99 loc) · 2.38 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
version: "3.9"
services:
express1:
image: cafuchino/express-static-hello:latest
expose:
- 3000
volumes:
- ./expressPublic/public1:/home/node/app/public
express2:
image: cafuchino/express-static-hello:latest
expose:
- 3000
volumes:
- ./expressPublic/public2:/home/node/app/public
postgres:
image: postgres
container_name: postgres
restart: always
environment:
POSTGRES_USER: chino
POSTGRES_PASSWORD: chino
volumes:
- ./postgres/init:/docker-entrypoint-initdb.d
- ./postgres/data:/var/lib/postgresql/data
ports:
- 5432:5432
mysql:
image: mysql/mysql-server
container_name: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: "chino"
ports:
- "3306:3306"
volumes:
- ./mysql/init:/docker-entrypoint-initdb.d # init db
- ./mysql/data:/var/lib/mysql # 挂载数据目录
- ./mysql/config:/etc/mysql/conf.d # 挂载配置文件目录
pgadmin:
image: dpage/pgadmin4
container_name: Pgadmin
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@chino.com
PGADMIN_DEFAULT_PASSWORD: chino
PGADMIN_CONFIG_LOGIN_BANNER: "'Welcome to chino testbox'"
ports:
- 4321:80
mongo:
image: mongo
container_name: mongoDB
restart: always
ports:
- 27017:27017
volumes:
- ./mongo/data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: chino
mongo-express:
image: mongo-express
container_name: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_URL: mongodb://root:chino@mongoDB:27017
redis:
image: redislabs/rejson:latest
container_name: Redis
restart: always
volumes:
- ./redis:/data
ports:
- 6379:6379
web:
image: nginx
container_name: Nginx
restart: always
volumes:
- ./web:/etc/nginx/html
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/vhost:/etc/nginx/vhost
ports:
- 80:80
environment:
NGINX_PORT: 80
haproxy:
image: haproxy:latest
volumes:
- ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
links:
- express1
- express2
ports:
- "3002:3000"
expose:
- "3000"