-
Notifications
You must be signed in to change notification settings - Fork 56
/
docker-compose.yml
84 lines (78 loc) · 1.72 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
version: '3.0'
services:
nginx:
image: nginx:1.22
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/tls:/etc/nginx/tls
- ./public:/public
ports:
- "443:443"
network_mode: host
restart: always
webapp:
build: ./webapp/go
environment:
ISUCON_DB_HOST: mysql
ISUCON_DB_PORT: 3306
ISUCON_DB_USER: isucon
ISUCON_DB_PASSWORD: isucon
ISUCON_DB_NAME: isuports
ISUCON_ADMIN_HOSTNAME: admin.t.isucon.dev
ports:
- "3000:3000"
links:
- mysql
volumes:
- ./webapp:/home/isucon/webapp
- tenant_db:/home/isucon/webapp/tenant_db
- initial_data:/home/isucon/initial_data
- gopkg:/home/isucon/go/pkg
init: true
restart: always
mysql:
image: mysql/mysql-server:8.0.31
environment:
- "MYSQL_ROOT_HOST=%"
- "MYSQL_ROOT_PASSWORD=root"
volumes:
- ./webapp/sql/admin/:/docker-entrypoint-initdb.d
- mysql:/var/lib/mysql
ports:
- 13306:3306
restart: always
blackauth:
build: ./webapp/go
ports:
- "3001:3001"
init: true
restart: always
volumes:
- .:/home/isucon
working_dir: /home/isucon/blackauth
command:
- /usr/local/go/bin/go
- run
- main.go
bench:
build: ./webapp/go
stdin_open: true
tty: true
environment:
ISUCON_JWT_KEY_FILE: ./isuports.pem
volumes:
- .:/home/isucon
- tenant_db:/home/isucon/webapp/tenant_db
- initial_data:/home/isucon/initial_data
- gopkg:/home/isucon/go/pkg
network_mode: host
working_dir: /home/isucon/bench
command:
- "bash"
- "-c"
- "sleep infinity"
volumes:
mysql:
gopkg:
tenant_db:
initial_data: