-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
57 lines (56 loc) · 1.57 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
version: '3.9'
services:
clickhouse:
image: clickhouse/clickhouse-server:23.9.1
environment:
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
CLICKHOUSE_USER:
CLICKHOUSE_PASSWORD:
CLICKHOUSE_DB:
APP__DATABASE__CLICKHOUSE_DSN: clickhouse://${CLICKHOUSE_USER}:${CLICKHOUSE_PASSWORD}@clickhouse:8123/${CLICKHOUSE_DB}
# ports:
# - 8123:8123/tcp
# - 9000:9000/tcp
ulimits:
nofile: 262144
networks:
- internal
restart: always
volumes:
- clickhouse_data:/var/lib/clickhouse/
worker:
image: tps-backend-image:latest
build:
context: .
dockerfile: Dockerfile
environment:
APP__TON_HTTP_API__URL: http://main:8081/api/v2/jsonRPC
APP__TON_HTTP_API__API_TOKEN:
APP__COUNTER_ADDRESS:
APP__RPS:
APP__DATABASE__CLICKHOUSE_DSN: clickhouse://${CLICKHOUSE_USER}:${CLICKHOUSE_PASSWORD}@clickhouse:8123/${CLICKHOUSE_DB}
networks:
- internal
- ton-http-api_main
restart: always
command: python3 -m backend
api:
image: tps-backend-image:latest
environment:
APP__TON_HTTP_API__URL: http://main:8081/api/v2/jsonRPC
APP__TON_HTTP_API__API_TOKEN:
APP__COUNTER_ADDRESS:
APP__RPS:
APP__DATABASE__CLICKHOUSE_DSN: clickhouse://${CLICKHOUSE_USER}:${CLICKHOUSE_PASSWORD}@clickhouse:8123/${CLICKHOUSE_DB}
networks:
- internal
restart: always
ports:
- 8082:8082
command: uvicorn backend.api.app:app --host 0.0.0.0 --port 8082
networks:
internal:
ton-http-api_main:
external: true
volumes:
clickhouse_data: