-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1007 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
52
53
version: '3.8'
services:
front:
build:
context: ./.docker/front
dockerfile: Dockerfile
image: front
container_name: front
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
volumes:
- ./front:/app:cached
ports:
- '3000:3000'
tty: true
db:
build:
context: ./.docker/db
dockerfile: Dockerfile
image: db
container_name: db
ports:
- 3306:3306
environment:
MYSQL_DATABASE: hoge
MYSQL_USER: hoge
MYSQL_PASSWORD: hgoe
MYSQL_ROOT_PASSWORD: hoge
TZ: "Asia/Tokyo"
volumes:
- db_volumes:/var/lib/mysql:cached
api:
build:
context: ./.docker/api
dockerfile: Dockerfile
image: api
container_name: api
volumes:
- ./api:/app:cached
tty: true
ports:
- "8000:8000"
environment:
- APP_ENV=development
depends_on:
- db
volumes:
db_volumes: