-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 929 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
version: "2"
services:
ngx-mruby:
build:
context: ./ngx-mruby
ports:
- "80:80"
depends_on:
- falcon
networks:
- flat-network
falcon:
build:
context: ./falcon
stop_signal: SIGQUIT
expose:
- "3031"
volumes:
- "./falcon/rest-api-example/:/var/apps/rest-api-example/" # for development
environment:
MYSQL_HOST: "mysql:3306"
MYSQL_DATABASE: "exampledb"
MYSQL_USER: "api-user"
MYSQL_PASSWORD: "api-user"
networks:
- flat-network
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: "hogehoge"
MYSQL_DATABASE: "exampledb"
MYSQL_USER: "api-user"
MYSQL_PASSWORD: "api-user"
volumes:
- "db-data:/var/lib/mysql"
- "./create_exampledb.sql:/docker-entrypoint-initdb.d/create_exampledb.sql"
networks:
- flat-network
volumes:
db-data:
networks:
flat-network: