-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (43 loc) · 1.11 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
43 lines (43 loc) · 1.11 KB
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
services:
http-api-cpp:
image: toncenter/ton-http-api-cpp:latest
build:
context: .
dockerfile: Dockerfile
target: http-api-cpp
args:
- BUILD_WITH_TON_REPO
- BUILD_WITH_TON_BRANCH
ports:
- ${THACPP_PORT:-8081}:8081
- ${THACPP_MONITOR_PORT:-8082}:8082
environment:
- THACPP_CONFIG_VARS=/run/secrets/config-vars
- THACPP_TONLIB_CONFIG_PATH=/run/secrets/ton-global-config
restart: unless-stopped
secrets:
- ton-global-config
- config-vars
ulimits:
memlock: -1
stack: -1
core: -1
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8081/api/v2/healthcheck || exit 1"]
interval: 3s
retries: 3
labels:
autoheal: 1
autoheal:
profiles: [autoheal]
image: willfarrell/autoheal
restart: always
environment:
AUTOHEAL_CONTAINER_LABEL: all
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets:
ton-global-config:
file: ${THACPP_TONLIB_CONFIG_PATH:-private/mainnet.json}
config-vars:
file: ${THACPP_CONFIG_VARS:-private/config_vars.yaml}