forked from isucon/isucon7-qualify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (74 loc) · 1.73 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
version: '3'
services:
bench:
build:
context: ./docker/bench
args:
GIT_URL: https://github.com/isucon/isucon7-qualify.git
image: isucon7-qualifier-bench
depends_on:
- web
networks:
- frontend
web:
build:
context: ./docker/web
args:
GIT_URL: https://github.com/tkhr0/isucon7-qualify.git
image: isucon7-qualifier-web:nginx
networks:
- frontend
- backend
depends_on:
- app
ports:
- "80:80"
volumes:
# - ./:/home/isucon/isubata:cached
# - ./files/app/nginx.conf:/etc/nginx/conf.d/nginx.confg:cached
- statics:/home/isucon/isubata/webapp/public
app:
build:
context: ./docker/app/ruby
args:
GIT_URL: https://github.com/tkhr0/isucon7-qualify.git
image: isucon7-qualifier-app:ruby
networks:
- backend
depends_on:
- db
ports:
- "5000"
environment:
ISUBATA_DB_USER: isucon
ISUBATA_DB_PASSWORD: isucon
ISUBATA_DB_HOST: db
# command: sh -c "bundle install && bundle exec puma -p 5000 -t 10"
command: sh -c "irb"
tty: true
volumes:
- ./webapp/ruby/:/home/isucon/isubata/webapp/ruby:cached
- bundle:/usr/local/bundle
- statics:/home/isucon/isubata/webapp/statics
db:
build:
context: ./docker/db
args:
GIT_URL: https://github.com/tkhr0/isucon7-qualify.git
image: isucon7-qualifier-db
ports:
- "4000:3306"
networks:
- backend
command: ["--character-set-server=utf8mb4"]
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: isubata
#MYSQL_USER: isucon
#MYSQL_PASSWORD: isucon
networks:
frontend:
backend:
volumes:
bundle:
statics: