-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (76 loc) · 1.76 KB
/
docker-compose.yml
File metadata and controls
76 lines (76 loc) · 1.76 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: "3.9"
volumes:
cardano_mainnet-ipc:
external: true
cardano_preprod-ipc:
external: true
cardano_preview-ipc:
external: true
cardano_sanchonet-ipc:
external: true
postgres:
external: true
name: dbsync_postgres
networks:
dbsync:
name: dbsync
external: true
secrets:
dbsync_db_root_password:
external: true
name: dbsync_db_root_password
postgres_password:
external: true
name: dbsync_db_user_password
postgres_user:
external: true
name: dbsync_db_user
dbsync_mainnet_db:
external: true
name: dbsync_mainnet_db
dbsync_preprod_db:
external: true
name: dbsync_preprod_db
dbsync_preview_db:
external: true
dbsync_sanchonet_db:
external: true
configs:
dbsync_config.json:
file: ./dbsync-config.json
services:
preview2:
image: ghcr.io/intersectmbo/cardano-db-sync:${DBSYNC_VERSION:-13.6.0.2}
environment:
NETWORK: preview
POSTGRES_HOST: postgres2
POSTGRES_PORT: 5432
DB_SYNC_CONFIG: /run/configs/dbsync2_config.json
DISABLE_CACHE: ""
DISABLE_LEDGER: ""
DISABLE_EPOCH: ""
secrets:
- postgres_user
- source: dbsync_preview_db
target: postgres_db
- postgres_password
configs:
- source: dbsync_config.json
target: /run/configs/dbsync2_config.json
volumes:
- /srv/cardano/cardano_preview-dbsync/_data/:/var/lib/cexplorer
- cardano_preview-ipc:/node-ipc
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
deploy:
labels:
"co_elastic_logs/enable": "false"
placement:
constraints:
- node.labels.dbsync2 == true
restart_policy:
condition: on-failure
delay: 15s