File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ DB_HOST=db
18
18
# Service name in docker-compose or local db
19
19
DB_PORT=5432
20
20
DB_SCHEMA=${NETWORK}
21
- DB_PATH=/ data
21
+ DB_PATH=data
22
22
UPDATE_GENESIS_BLOCK_QUERY="UPDATE devkit.block SET number = 0 WHERE number = -1; UPDATE devkit.block SET prev_hash = 'Genesis' WHERE number = 1"
23
23
24
24
## Cardano Node variables
@@ -32,7 +32,7 @@ CARDANO_NODE_VERSION=0.0.0
32
32
CARDANO_NODE_SOCKET_PATH=/node
33
33
CARDANO_NODE_SOCKET=${CARDANO_NODE_SOCKET_PATH}/node.socket
34
34
CARDANO_NODE_DB=/node/db
35
- CARDANO_CONFIG=/config/${NETWORK}
35
+ CARDANO_CONFIG=. /config/${NETWORK}
36
36
37
37
## Api env
38
38
API_DOCKER_IMAGE_TAG=main
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ DB_HOST=db
17
17
# Service name in docker-compose or local db
18
18
DB_PORT=5432
19
19
DB_SCHEMA=${NETWORK}
20
- DB_PATH=/ data
20
+ DB_PATH=data
21
21
22
22
## Cardano Node variables
23
23
CARDANO_NODE_HOST=cardano-node
@@ -30,7 +30,7 @@ NODE_SUBMIT_API_PORT=8090
30
30
CARDANO_NODE_SOCKET_PATH=/node
31
31
CARDANO_NODE_SOCKET=${CARDANO_NODE_SOCKET_PATH}/node.socket
32
32
CARDANO_NODE_DB=/node/db
33
- CARDANO_CONFIG=/config/${NETWORK}
33
+ CARDANO_CONFIG=. /config/${NETWORK}
34
34
35
35
## Api env
36
36
API_DOCKER_IMAGE_TAG=main
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ services:
27
27
DEVKIT_URL : ${DEVKIT_URL}
28
28
DEVKIT_PORT : ${DEVKIT_PORT}
29
29
volumes :
30
- - ./ ${CARDANO_CONFIG}:/config
31
- - ./ ${CARDANO_NODE_SOCKET_PATH}:${CARDANO_NODE_SOCKET_PATH}
30
+ - ${CARDANO_CONFIG}:/config
31
+ - ${CARDANO_NODE_SOCKET_PATH}:${CARDANO_NODE_SOCKET_PATH}
32
32
healthcheck :
33
33
test : [ "CMD-SHELL", "curl --fail http://localhost:${API_PORT}/network/options -H 'Content-Type: application/json' --data '{\"metadata\": {}}' -X POST" ]
34
34
interval : 30s
@@ -63,7 +63,7 @@ services:
63
63
GENESIS_CONWAY_PATH : ${GENESIS_CONWAY_PATH}
64
64
INITIAL_BALANCE_CALCULATION_BLOCK : ${INITIAL_BALANCE_CALCULATION_BLOCK}
65
65
volumes :
66
- - ./ ${CARDANO_CONFIG}:/config
66
+ - ${CARDANO_CONFIG}:/config
67
67
restart : always
68
68
depends_on :
69
69
db :
@@ -81,7 +81,7 @@ services:
81
81
POSTGRES_DB : ${DB_NAME}
82
82
restart : on-failure
83
83
volumes :
84
- - ./ ${DB_PATH}:/var/lib/postgresql/data
84
+ - ${DB_PATH}:/var/lib/postgresql/data
85
85
healthcheck :
86
86
test : [ "CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME} -p ${DB_PORT} -h localhost"]
87
87
interval : 10s
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ services:
5
5
environment :
6
6
- NETWORK=${NETWORK}
7
7
volumes :
8
- - ./ ${CARDANO_NODE_SOCKET_PATH}:${CARDANO_NODE_SOCKET_PATH}
9
- - ./ ${CARDANO_NODE_DB}:/data/db
10
- - ./ ${CARDANO_CONFIG}:/config
8
+ - ${CARDANO_NODE_SOCKET_PATH}:${CARDANO_NODE_SOCKET_PATH}
9
+ - ${CARDANO_NODE_DB}:/data/db
10
+ - ${CARDANO_CONFIG}:/config
11
11
ports :
12
12
- ${CARDANO_NODE_PORT}:${CARDANO_NODE_PORT}
13
13
entrypoint : cardano-node run --database-path /data/db --port ${CARDANO_NODE_PORT} --socket-path ${CARDANO_NODE_SOCKET} --topology /config/topology.json --config /config/config.json
@@ -19,7 +19,7 @@ services:
19
19
depends_on :
20
20
- cardano-node
21
21
volumes :
22
- - ./ ${CARDANO_NODE_SOCKET_PATH}:/node-ipc
22
+ - ${CARDANO_NODE_SOCKET_PATH}:/node-ipc
23
23
ports :
24
24
- ${NODE_SUBMIT_API_PORT}:8090
25
25
restart : on-failure
You can’t perform that action at this time.
0 commit comments