forked from toncenter/ton-indexer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.alembic.yaml
46 lines (41 loc) · 1.05 KB
/
docker-compose.alembic.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
version: '3.9'
x-indexer-environment: &indexer-environment
POSTGRES_DIALECT: ${POSTGRES_DIALECT:-postgresql+asyncpg}
POSTGRES_HOST:
POSTGRES_PORT:
POSTGRES_USER:
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
POSTGRES_DBNAME:
TON_INDEXER_API_ROOT_PATH:
services:
alembic:
image: ${DOCKER_REGISTRY:-docker.io/toncenter}/ton-indexer-cpp:${IMAGE_TAG:?}
build:
context: indexer
dockerfile: Dockerfile
environment: *indexer-environment
secrets:
- postgres_password
command: alembic upgrade head-1
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- "node.labels.${TONCENTER_ENV:?}.indexer-cpp.api==true"
restart_policy:
condition: on-failure
delay: 3s
max_attempts: 3
window: 60s
networks:
internal:
networks:
internal:
attachable: true
external: false
driver_opts:
com.docker.network.driver.mtu: 1350
secrets:
postgres_password:
file: ${POSTGRES_PASSWORD_FILE:-private/postgres_password}