-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yml
60 lines (54 loc) · 1.37 KB
/
docker-compose.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
56
57
58
59
60
networks:
default:
name: nearda
services:
near-da-sidecar:
container_name: near-da-sidecar
image: ghcr.io/nuffle-labs/data-availability/sidecar:dev
# build:
# context: .
# dockerfile: bin/http-api/Dockerfile
restart: unless-stopped
depends_on:
- near-localnet-set-key
environment:
- RUST_LOG=debug
volumes:
- ./test/http-sidecar.json:/app/config.json
command:
- -c
- /app/config.json
ports:
- 5888:5888
near-localnet-set-key:
container_name: near-localnet-set-key
build:
context: ./test
dockerfile: sandbox.Dockerfile
depends_on:
near-localnet:
condition: service_healthy
volumes:
- near-sandbox-data:/root/.near
- ./test/http-sidecar.json:/config.json
entrypoint:
- bash
- -c
- sed "s/HTTP_API_TEST_SECRET_KEY/`cat /root/.near/validator_key.json | jq -r '.secret_key'`/g" /config.json > /config2.json && cp /config2.json /config.json
near-localnet:
container_name: near-localnet
build:
context: ./test
dockerfile: sandbox.Dockerfile
healthcheck:
test: curl --fail http://localhost:3030/health || exit 1
interval: 30s
retries: 5
start_period: 10s
timeout: 5s
volumes:
- near-sandbox-data:/root/.near
ports:
- 3030:3030
volumes:
near-sandbox-data: