-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
62 lines (59 loc) · 1.82 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
61
62
version: '3.7'
services:
ton-node:
build:
context: build
dockerfile: Dockerfile.node
args:
VER: ${NODE_VERSION}
image: ton-node:${NODE_VERSION}
restart: always
ports:
- ${NODE_CONSOLE_PORT}:${NODE_CONSOLE_PORT}
- ${NODE_CONSOLE_PORT}:${NODE_CONSOLE_PORT}/udp
- ${NODE_LITESERVER_PORT}:${NODE_LITESERVER_PORT}
- ${NODE_LITESERVER_PORT}:${NODE_LITESERVER_PORT}/udp
volumes:
- ${NODE_STATE_VOLUME}:/var/ton-work/db
- ${NODE_LOG_VOLUME}:/var/ton-work/log
environment:
GCONFURL: ${NODE_CONFIG_URL}
PUBLIC_IP: ${NODE_PUBLIC_IP}
LITESERVER: ${NODE_LITESERVER}
LITE_PORT: ${NODE_LITESERVER_PORT}
CONSOLE_PORT: ${NODE_CONSOLE_PORT}
networks:
ton-network:
ipv4_address: 172.18.0.2
ton-api:
build:
context: build
dockerfile: Dockerfile.api
args:
VER: ${API_VERSION}
image: ton-api
restart: always
ports:
- 8081:8081
volumes:
- ${API_CONF_VOLUME}:/conf
environment:
TON_API_CACHE_ENABLED: ${API_CACHE_ENABLED}
TON_API_LOGS_JSONIFY: ${API_LOGS_JSONIFY}
TON_API_LOGS_LEVEL: ${API_LOGS_LEVEL}
TON_API_TONLIB_LITESERVER_CONFIG: ${API_TONLIB_LITESERVER_CONFIG}
TON_API_TONLIB_PARALLEL_REQUESTS_PER_LITESERVER: ${API_TONLIB_PARALLEL_REQUESTS_PER_LITESERVER}
TON_API_TONLIB_REQUEST_TIMEOUT: ${API_TONLIB_REQUEST_TIMEOUT}
TON_API_GET_METHODS_ENABLED: ${API_GET_METHODS_ENABLED}
TON_API_JSON_RPC_ENABLED: ${API_JSON_RPC_ENABLED}
TON_API_ROOT_PATH: ${API_ROOT_PATH}
command: -c "gunicorn -k uvicorn.workers.UvicornWorker -w 1 --bind 0.0.0.0:8081 pyTON.main:app"
networks:
ton-network:
ipv4_address: 172.18.0.3
networks:
ton-network:
driver: bridge
ipam:
config:
- subnet: 172.18.0.0/24