-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.39 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
version: "3.9"
x-indexer-environment: &index-worker
POSTGRES_DIALECT: ${POSTGRES_DIALECT:-postgresql+asyncpg}
POSTGRES_HOST:
POSTGRES_PORT:
POSTGRES_USER:
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
POSTGRES_DBNAME:
POSTGRES_PUBLISH_PORT:
TON_WORKER_FROM:
TON_WORKER_BINARY: ton-index-postgres-v2
services:
index-worker:
build:
context: ton-index-worker
dockerfile: Dockerfile
secrets:
- postgres_password
volumes:
- ${TON_WORKER_DBROOT:-./}:/tondb
environment:
POSTGRES_DIALECT: ${POSTGRES_DIALECT:-postgresql+asyncpg}
POSTGRES_HOST: ${POSTGRES_HOST}
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
POSTGRES_DBNAME: ${POSTGRES_DBNAME}
POSTGRES_PUBLISH_PORT: ${POSTGRES_PUBLISH_PORT}
TON_WORKER_FROM: ${TON_WORKER_FROM}
TON_WORKER_BINARY: ton-index-postgres-v2
networks:
internal:
command: --from ${TON_WORKER_FROM:-1} --datalake-mode --max-active-tasks ${MAX_ACTIVE_TASKS:-10} --max-insert-actors ${MAX_INSERT_ACTORS:-12} --threads ${THREADS:-7}
restart: unless-stopped
ulimits:
nofile:
soft: "1000000"
hard: "1000000"
networks:
internal:
attachable: true
external: false
secrets:
postgres_password:
file: ${POSTGRES_PASSWORD_FILE:-private/postgres_password}