-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1005 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
version: '3.2'
services:
app:
build:
context: ./docker/app
cache_from:
- isucon7-qualify-ocaml_app
image: isucon7-qualify-ocaml_app
# Do nothing for development
# command: tail -f /dev/null
env_file: .env
working_dir: /opt/app
volumes:
- opam-data:/root/.opam
- .:/opt/app
expose:
- "$ISUBATA_APP_PORT"
ports:
- "${ISUBATA_APP_PUBLISH_PORT}:${ISUBATA_APP_PORT}"
privileged: true
depends_on:
- db
db:
image: mysql:5.7
environment:
- MYSQL_USER=$ISUBATA_DB_USER
- MYSQL_PASSWORD=$ISUBATA_DB_PASSWORD
- MYSQL_DATABASE=isubata
- MYSQL_RANDOM_ROOT_PASSWORD=yes
volumes:
- ./db:/docker-entrypoint-initdb.d:ro
expose:
- "3306"
bench:
build:
context: ./docker/bench
cache_from:
- isucon7-qualify-ocaml_bench
image: isucon7-qualify-ocaml_bench
env_file: .env
depends_on:
- app
volumes:
opam-data:
driver: local