-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
67 lines (67 loc) · 1.61 KB
/
Copy pathcompose.yaml
File metadata and controls
67 lines (67 loc) · 1.61 KB
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
services:
app:
build:
context: .
dockerfile: Dockerfile
environment:
DB_USER: user
DB_PASSWORD: password
DB_ENDPOINT: db
DB_PORT: 3306
DREAMKAST_NAMESPACES: local
working_dir: /
ports:
- "8088:8080"
entrypoint: ["/dkw", "serve"]
develop:
watch:
- action: rebuild
path: internal
- action: rebuild
path: cmd
- action: rebuild
path: go.sum
depends_on:
init:
condition: service_completed_successfully
db:
condition: service_healthy
init:
build:
context: .
dockerfile: Dockerfile
environment:
DB_USER: user
DB_PASSWORD: password
DB_ENDPOINT: db
DB_PORT: 3306
DREAMKAST_NAMESPACES: local
working_dir: /
entrypoint: ["/dkw", "dbmigrate"]
depends_on:
db:
condition: service_healthy
develop:
watch:
- action: rebuild
path: internal/infrastructure/db/migrations
db:
image: mysql/mysql-server:8.0
environment:
MYSQL_ROOT_PASSWORD: password
#TZ: 'Asia/Tokyo'
cap_add:
- SYS_NICE
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_0900_ai_ci --default-authentication-plugin=mysql_native_password
volumes:
- mysql-data:/var/lib/mysql
- ./dev/db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
ports:
- "13306:3306"
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h localhost -p$${MYSQL_ROOT_PASSWORD} --silent"]
interval: 5s
timeout: 10s
retries: 10
volumes:
mysql-data: