-
Notifications
You must be signed in to change notification settings - Fork 43
/
docker-compose.yaml
40 lines (40 loc) · 1.23 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: toncenter/ton-http-api
build:
context: ton-http-api
dockerfile: .docker/Dockerfile
ports:
- ${TON_API_HTTP_PORT:-8081}:8081
environment:
- TON_API_CACHE_ENABLED
- TON_API_CACHE_REDIS_ENDPOINT
- TON_API_CACHE_REDIS_PORT
- TON_API_CACHE_REDIS_TIMEOUT
- TON_API_LOGS_JSONIFY
- TON_API_LOGS_LEVEL
- TON_API_TONLIB_LITESERVER_CONFIG=/run/secrets/liteserver_config
- TON_API_TONLIB_KEYSTORE
- TON_API_TONLIB_PARALLEL_REQUESTS_PER_LITESERVER
- TON_API_TONLIB_CDLL_PATH
- TON_API_TONLIB_REQUEST_TIMEOUT
- TON_API_GET_METHODS_ENABLED
- TON_API_JSON_RPC_ENABLED
- TON_API_ROOT_PATH
restart: unless-stopped
networks:
- internal
secrets:
- liteserver_config
command: -c "gunicorn -k uvicorn.workers.UvicornWorker -w ${TON_API_WEBSERVERS_WORKERS} --bind 0.0.0.0:8081 ${TON_API_GUNICORN_FLAGS} pyTON.main:app"
healthcheck:
test: curl -sS http://127.0.0.1:8081${TON_API_ROOT_PATH}/healthcheck || echo 1
interval: 15s
timeout: 3s
retries: 12
secrets:
liteserver_config:
file: ${TON_API_TONLIB_LITESERVER_CONFIG:-./private/mainnet.json}
networks:
internal: