-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcompose.yml
More file actions
64 lines (62 loc) · 1.38 KB
/
compose.yml
File metadata and controls
64 lines (62 loc) · 1.38 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
services:
backend:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "127.0.0.1:18090:18091"
volumes:
- .:/app
- go-mod:/go/pkg/mod
- go-cache:/go/cache
- middleman-data:/data
environment:
MIDDLEMAN_CONFIG_PATH: /app/docker/dev-config.toml
MIDDLEMAN_GITHUB_TOKEN: ${MIDDLEMAN_GITHUB_TOKEN}
GOCACHE: /go/cache
healthcheck:
test:
[
"CMD-SHELL",
"curl -fsS http://127.0.0.1:18091/healthz >/dev/null",
]
interval: 5s
timeout: 3s
retries: 10
start_period: 5s
command:
- sh
- /app/docker/backend-dev-entrypoint.sh
frontend:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "127.0.0.1:15173:15173"
volumes:
- .:/app
- /app/frontend/node_modules
environment:
MIDDLEMAN_API_URL: http://backend:18091
BUN_INSTALL_FLAGS: --frozen-lockfile
FRONTEND_DEV_ARGS: --host 0.0.0.0 --port 15173
depends_on:
backend:
condition: service_healthy
healthcheck:
test:
[
"CMD-SHELL",
"curl -fsS http://127.0.0.1:15173/healthz >/dev/null",
]
interval: 5s
timeout: 3s
retries: 10
start_period: 5s
command:
- sh
- /app/docker/frontend-dev-entrypoint.sh
volumes:
go-mod:
go-cache:
middleman-data: