-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathquickstart.yml
55 lines (50 loc) · 1.28 KB
/
quickstart.yml
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
version: "3.9"
services:
metadataservice:
image: ghcr.io/metal-toolbox/hollow-metadaaservice:v0.0.27
depends_on:
crdb:
condition: service_healthy
metadataservice-migrate:
condition: service_completed_successfully
environment:
- METADATASERVICE_OIDC_ENABLED=false
- METADATASERVICE_CRDB_URI=postgresql://root@crdb:26257/defaultdb?sslmode=disable
ports:
- "8000:8000"
restart: unless-stopped
networks:
- metadataservice
metadataservice-migrate:
image: ghcr.io/metal-toolbox/hollow-metadataservice:v0.0.27
command:
migrate up
depends_on:
crdb:
condition: service_healthy
environment:
- METADATASERVICE_CRDB_URI=postgresql://root@crdb:26257/defaultdb?sslmode=disable
restart: on-failure
networks:
- metadataservice
crdb:
image: cockroachdb/cockroach:latest-v23.1
volumes:
- db:/cockroach/cockroach-data
command: start-single-node --insecure
ports:
- "8080:8080"
- "26257:26257"
restart: unless-stopped
healthcheck:
test: "curl http://localhost:8080/health?ready=1"
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks:
- metadataservice
volumes:
db:
networks:
metadataservice: