-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
104 lines (97 loc) · 2.56 KB
/
Copy pathdocker-compose.yml
File metadata and controls
104 lines (97 loc) · 2.56 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
services:
mongo:
image: mongo:7
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
restate:
image: docker.io/restatedev/restate:latest
ports:
- "8081:8080" # ingress
- "9070:9070" # admin
registry:
image: registry:2
container_name: langship-flow-registry
ports:
# Host port 5050 (debug / docker pull from host); inside the compose
# network buildkitd pushes to registry:5000 via service DNS.
- "127.0.0.1:5050:5000"
volumes:
- registry-data:/var/lib/registry
buildkitd:
image: moby/buildkit:v0.18.2
container_name: langship-flow-buildkitd
privileged: true
command:
- --addr
- tcp://0.0.0.0:1234
- --addr
- unix:///run/buildkit/buildkitd.sock
- --config
- /etc/buildkit/buildkitd.toml
ports:
- "127.0.0.1:1234:1234"
volumes:
- buildkit-data:/var/lib/buildkit
- ./docker/buildkit/buildkitd.toml:/etc/buildkit/buildkitd.toml:ro
healthcheck:
test: ["CMD", "buildctl", "--addr", "tcp://0.0.0.0:1234", "debug", "info"]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
minio:
image: minio/minio:latest
container_name: langship-flow-minio
command: server /data --console-address ":9001"
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=minio12345
ports:
- "127.0.0.1:9000:9000" # S3 API
- "127.0.0.1:9001:9001" # web console
volumes:
- minio-data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 10s
timeout: 3s
retries: 5
start_period: 5s
flow:
build: .
ports:
- "8090:8090" # JSON API
- "9080:9080" # restate callback endpoint
environment:
- FLOW_ADDR=:8090
- MONGO_URI=mongodb://mongo:27017
- MONGO_DB=flow
- FLOW_CORS_ORIGINS=http://localhost:3000,http://web:3000
- RESTATE_INGRESS_URL=http://restate:8080
- RESTATE_ADMIN_URL=http://restate:9070
- RESTATE_DEPLOYMENT_URI=http://flow:9080
- BUILDKIT_HOST=tcp://buildkitd:1234
- MINIO_ENDPOINT=minio:9000
- MINIO_ACCESS_KEY=minio
- MINIO_SECRET_KEY=minio12345
- MINIO_BUCKET=flow-logs
- MINIO_USE_SSL=false
depends_on:
- mongo
- restate
- buildkitd
- registry
- minio
web:
build: ./web
ports:
- "3000:3000" # UI (open this in your browser)
depends_on:
- flow
volumes:
mongo-data:
buildkit-data:
registry-data:
minio-data: