-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (63 loc) · 1.47 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
version: "2"
services:
fake_mysql:
container_name: fake_mysql
image: "mysql:5.6"
environment:
MYSQL_ROOT_PASSWORD: password
ports:
- "33061:3306"
volumes:
- "./sql:/docker-entrypoint-initdb.d:ro"
fake_redis:
container_name: fake_redis
image: "redis:3.0"
ports:
- "63791:6379"
fake_server_1:
container_name: fake_server_1
image: "fake_server:0.0.1-SNAPSHOT"
links:
- "fake_mysql:db"
- "fake_redis:redis"
environment:
APPLICATION_NAME: fake_server_1
DATABASE_IP: db
DATABASE_PORT: 3306
REDIS_HOST: redis
REDIS_PORT: 6379
fake_server_2:
container_name: fake_server_2
image: "fake_server:0.0.1-SNAPSHOT"
links:
- "fake_mysql:db"
- "fake_redis:redis"
environment:
APPLICATION_NAME: fake_server_2
DATABASE_IP: db
DATABASE_PORT: 3306
REDIS_HOST: redis
REDIS_PORT: 6379
fake_server_3:
container_name: fake_server_3
image: "fake_server:0.0.1-SNAPSHOT"
links:
- "fake_mysql:db"
- "fake_redis:redis"
environment:
APPLICATION_NAME: fake_server_3
DATABASE_IP: db
DATABASE_PORT: 3306
REDIS_HOST: redis
REDIS_PORT: 6379
fake_slb:
container_name: fake_slb
image: "nginx:1.9"
links:
- "fake_server_1:client_1"
- "fake_server_2:client_2"
- "fake_server_3:client_3"
volumes:
- "./nginx:/etc/nginx/conf.d:ro"
ports:
- "8080:80"