forked from isucon/isucon7-qualify
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
51 lines (51 loc) · 992 Bytes
/
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
version: '2'
services:
app01:
build: ./docker/app
container_name: isucon7-app01
stdin_open: true
privileged: true
volumes:
- .:/home/isucon/isubata
ports:
- 8081:80
depends_on:
- app03
links:
- app03
cpuset: '0'
mem_limit: 1G
app02:
build: ./docker/app
container_name: isucon7-app02
stdin_open: true
privileged: true
volumes:
- .:/home/isucon/isubata
ports:
- 8082:80
depends_on:
- app03
links:
- app03
cpuset: '1'
mem_limit: 1G
app03:
build: ./docker/db
container_name: isucon7-app03
restart: always
stdin_open: true
privileged: true
volumes:
- .:/home/isucon/isubata
- ./docker/db/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf
ports:
- 3306
mem_limit: 1G
bench:
build: ./docker/app
container_name: isucon7-bench
restart: always
stdin_open: true
volumes:
- .:/home/isucon/isubata