-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdocker-compose-cardano.yml
More file actions
103 lines (100 loc) · 2.18 KB
/
docker-compose-cardano.yml
File metadata and controls
103 lines (100 loc) · 2.18 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: "3.9"
secrets:
postgres_user:
external: true
name: ${PROJECT_NAME}_postgres_user
postgres_password:
external: true
name: ${PROJECT_NAME}_postgres_password
dbsync_database:
external: true
name: ${PROJECT_NAME}_dbsync_database
volumes:
node_data:
node_ipc:
dbsync_data:
networks:
postgres:
external: true
frontend:
external: true
cardano:
attachable: true
name: cardano
services:
node:
image: ghcr.io/intersectmbo/cardano-node:8.11.0-sancho
environment:
NETWORK: ${CARDANO_NETWORK}
volumes:
- node_data:/data
- node_ipc:/ipc
stop_grace_period: 1m
logging:
driver: "json-file"
options:
max-size: "10M"
max-file: "10"
ports:
- target: 3001
published: 3001
protocol: tcp
mode: host
deploy:
placement:
constraints:
- node.labels.blockchain==true
restart_policy:
condition: on-failure
delay: 15s
dbsync:
image: ghcr.io/intersectmbo/cardano-db-sync:sancho-5.0.0
networks:
- postgres
environment:
NETWORK: ${CARDANO_NETWORK}
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
DISABLE_CACHE: ""
DISABLE_LEDGER: ""
DISABLE_EPOCH: ""
secrets:
- postgres_user
- source: dbsync_database
target: postgres_db
- postgres_password
volumes:
- dbsync_data:/var/lib/cexplorer
- node_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.blockchain== true
restart_policy:
condition: on-failure
delay: 15s
kuber:
image: dquadrant/kuber:3.1.0
environment:
CARDANO_NODE_SOCKET_PATH: /ipc/node.socket
VIRTUAL_HOST: https://kuber-${BASE_DOMAIN}
NETWORK: 4
START_ERA: CONWAY
volumes:
- node_ipc:/ipc/
networks:
- cardano
- frontend
deploy:
placement:
constraints:
- node.labels.blockchain== true
restart_policy:
delay: "30s"