-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (48 loc) · 987 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (48 loc) · 987 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
43
44
45
46
47
48
49
50
services:
api:
build:
context: .
dockerfile: docker/Dockerfile.api.dev
env_file:
- .env
environment:
BUS_MAP_REGION_ROOT: /workspace/assets/regions
ports:
- "3000:3000"
healthcheck:
test: ["CMD-SHELL", "bash -lc 'exec 3<>/dev/tcp/127.0.0.1/3000'"]
interval: 2s
timeout: 2s
retries: 30
start_period: 5s
volumes:
- .:/workspace
- cargo-target-api:/cargo-target-api
- cargo-registry:/usr/local/cargo/registry
web:
build:
context: .
dockerfile: docker/Dockerfile.web
command:
- trunk
- serve
- --config
- Trunk.toml
- --address
- 0.0.0.0
- --port
- "8080"
- --proxy-rewrite
- /api
- --proxy-backend
- http://api:3000
ports:
- "8080:8080"
volumes:
- .:/workspace
depends_on:
api:
condition: service_healthy
volumes:
cargo-target-api:
cargo-registry: