-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcompose-partner-chains.yml
More file actions
88 lines (83 loc) · 2.47 KB
/
compose-partner-chains.yml
File metadata and controls
88 lines (83 loc) · 2.47 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
# This file is part of https://github.com/midnightntwrk/midnight-node-docker
# Copyright (C) 2025 Midnight Foundation
# SPDX-License-Identifier: Apache-2.0
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
volumes:
cardano-ipc: {}
db-sync-data: {}
postgres-data: {}
ogmios-data: {}
services:
cardano-node:
image: ${CARDANO_IMAGE}
restart: unless-stopped
container_name: cardano-node
ports:
- "3001:3001"
environment:
- NETWORK=${CARDANO_NETWORK}
- CARDANO_NODE_SOCKET_PATH=/ipc/node.socket
volumes:
- cardano-ipc:/ipc
- ${CARDANO_DATA_DIR}:/data
postgres:
image: postgres:15.3
container_name: db-sync-postgres
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 5s
timeout: 5s
retries: 5
cardano-db-sync:
image: ghcr.io/blinklabs-io/cardano-db-sync:13.6.0.4
container_name: cardano-db-sync
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
- NETWORK=${CARDANO_NETWORK}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- cardano-ipc:/node-ipc
- db-sync-data:/var/lib
cardano-ogmios:
image: cardanosolutions/ogmios:v6.11.0
container_name: cardano-ogmios
restart: unless-stopped
environment:
- DATA_DIR=/data
ports:
- "1337:1337"
volumes:
- cardano-ipc:/ipc
- ogmios-data:/data
command:
- --node-socket
- /ipc/node.socket
- --node-config
- /config/${CARDANO_NETWORK}/cardano-node/config.json
- --host
- 0.0.0.0