-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
73 lines (68 loc) · 2.48 KB
/
docker-compose.yaml
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
services:
db:
container_name: "tzkt-db-${CUCUMBER_WORKER_ID:-0}"
restart: always
image: postgres:16
healthcheck:
test: pg_isready -U ${POSTGRES_USER:-tzkt} -d ${POSTGRES_DB:-tzkt_db}
interval: 1s
timeout: 1s
retries: 10
environment:
POSTGRES_USER: ${POSTGRES_USER:-tzkt}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-qwerty}
POSTGRES_DB: ${POSTGRES_DB:-tzkt_db}
tezos_node:
container_name: "tezos-node-${CUCUMBER_WORKER_ID:-0}"
restart: always
image: ghcr.io/tez-capital/tezbox:tezos-v20.3
environment:
- USER=root
volumes:
- ./sandbox-override-parameters.hjson:/tezbox/overrides/protocols/PsParisC/sandbox-parameters.hjson
proxy:
container_name: "tezos-node-proxy-${CUCUMBER_WORKER_ID:-0}"
restart: always
image: nginx:alpine
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 2000${CUCUMBER_WORKER_ID:-0}:80
sync:
container_name: "tzkt-sync-${CUCUMBER_WORKER_ID:-0}"
restart: always
image: ${TZKT_SYNC_IMAGE:-serjonya/tzkt-sync:1.14.5}
environment:
ConnectionStrings__DefaultConnection: host=db;port=5432;database=${POSTGRES_DB:-tzkt_db};username=${POSTGRES_USER:-tzkt};password=${POSTGRES_PASSWORD:-qwerty};command timeout=${COMMAND_TIMEOUT:-600};
Kestrel__Endpoints__Http__Url: http://0.0.0.0:5001
TezosNode__Endpoint: http://tezos_node:20000
Home__Enabled: "true"
HealthChecks__Enabled: "true"
depends_on:
db:
condition: service_healthy
api:
container_name: "tzkt-api-${CUCUMBER_WORKER_ID:-0}"
restart: always
image: ${TZKT_API_IMAGE:-serjonya/tzkt-api:1.14.5}
depends_on:
sync:
condition: service_started
environment:
ConnectionStrings__DefaultConnection: host=db;port=5432;database=${POSTGRES_DB:-tzkt_db};username=${POSTGRES_USER:-tzkt};password=${POSTGRES_PASSWORD:-qwerty};command timeout=${COMMAND_TIMEOUT:-600};
Kestrel__Endpoints__Http__Url: http://0.0.0.0:5000
Home__Enabled: "true"
HealthChecks__Enabled: "true"
ResponseCache__CacheSize: 0
healthcheck:
# check that Alice account has received initial 50000 tez
test: curl -f http://localhost:5000/v1/accounts/tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb | grep -cE '"balance":(50000|49999)'
interval: 1s
timeout: 1s
retries: 100
start_period: 10s
ports:
- 500${CUCUMBER_WORKER_ID:-0}:5000
networks:
default:
name: "tzkt-network-${CUCUMBER_WORKER_ID:-0}"