-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (42 loc) · 930 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (42 loc) · 930 Bytes
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: "3.6"
services:
app:
build: .
image: go-intern-diary
volumes:
- .:/go/src/github.com/hatena/go-Intern-Diary
links:
- db
ports:
- "8000:8000"
environment:
PORT: 8000
DATABASE_DSN: root@(db:3306)/intern_diary
DATABASE_DSN_TEST: root@(db:3306)/intern_diary_test
tty: true
stdin_open: true
db:
image: mysql:5.7
volumes:
- ./db/docker:/docker-entrypoint-initdb.d
- .:/app
ports:
- "3306:3306"
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=1
node:
build:
context: .
target: node
working_dir: /app
command: ["yarn", "watch"]
volumes:
- ./ui:/app/ui
- ./package.json:/app/package.json
- ./yarn.lock:/app/yarn.lock
- ./static:/app/static/
- yarn-cache:/usr/local/share/.cache/yarn/v1
- node_modules:/app/node_modules
volumes:
yarn-cache:
node_modules: