forked from toncenter/ton-http-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
40 lines (40 loc) · 1.24 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
version: '3.7'
services:
main:
image: ice-blockchain/ion-http-api
build:
context: ion-http-api
dockerfile: .docker/Dockerfile
ports:
- ${ION_API_HTTP_PORT:-8081}:8081
environment:
- ION_API_CACHE_ENABLED
- ION_API_CACHE_REDIS_ENDPOINT
- ION_API_CACHE_REDIS_PORT
- ION_API_CACHE_REDIS_TIMEOUT
- ION_API_LOGS_JSONIFY
- ION_API_LOGS_LEVEL
- ION_API_TONLIB_LITESERVER_CONFIG=/run/secrets/liteserver_config
- ION_API_TONLIB_KEYSTORE
- ION_API_TONLIB_PARALLEL_REQUESTS_PER_LITESERVER
- ION_API_TONLIB_CDLL_PATH
- ION_API_TONLIB_REQUEST_TIMEOUT
- ION_API_GET_METHODS_ENABLED
- ION_API_JSON_RPC_ENABLED
- ION_API_ROOT_PATH
restart: unless-stopped
networks:
- internal
secrets:
- liteserver_config
command: -c "gunicorn -k uvicorn.workers.UvicornWorker -w ${ION_API_WEBSERVERS_WORKERS} --bind 0.0.0.0:8081 ${ION_API_GUNICORN_FLAGS} pyION.main:app"
healthcheck:
test: curl -sS http://127.0.0.1:8081${ION_API_ROOT_PATH}/healthcheck || echo 1
interval: 15s
timeout: 3s
retries: 12
secrets:
liteserver_config:
file: ${ION_API_TONLIB_LITESERVER_CONFIG:-./private/mainnet.json}
networks:
internal: