Skip to content

Commit 5a1c5e2

Browse files
authored
RA-141: Remove relative path from docker compose files (#176)
2 parents b12479c + 627877e commit 5a1c5e2

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.env.IntegrationTest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ DB_HOST=db
1818
# Service name in docker-compose or local db
1919
DB_PORT=5432
2020
DB_SCHEMA=${NETWORK}
21-
DB_PATH=/data
21+
DB_PATH=data
2222
UPDATE_GENESIS_BLOCK_QUERY="UPDATE devkit.block SET number = 0 WHERE number = -1; UPDATE devkit.block SET prev_hash = 'Genesis' WHERE number = 1"
2323

2424
## Cardano Node variables
@@ -32,7 +32,7 @@ CARDANO_NODE_VERSION=0.0.0
3232
CARDANO_NODE_SOCKET_PATH=/node
3333
CARDANO_NODE_SOCKET=${CARDANO_NODE_SOCKET_PATH}/node.socket
3434
CARDANO_NODE_DB=/node/db
35-
CARDANO_CONFIG=/config/${NETWORK}
35+
CARDANO_CONFIG=./config/${NETWORK}
3636

3737
## Api env
3838
API_DOCKER_IMAGE_TAG=main

.env.docker-compose

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ DB_HOST=db
1717
# Service name in docker-compose or local db
1818
DB_PORT=5432
1919
DB_SCHEMA=${NETWORK}
20-
DB_PATH=/data
20+
DB_PATH=data
2121

2222
## Cardano Node variables
2323
CARDANO_NODE_HOST=cardano-node
@@ -30,7 +30,7 @@ NODE_SUBMIT_API_PORT=8090
3030
CARDANO_NODE_SOCKET_PATH=/node
3131
CARDANO_NODE_SOCKET=${CARDANO_NODE_SOCKET_PATH}/node.socket
3232
CARDANO_NODE_DB=/node/db
33-
CARDANO_CONFIG=/config/${NETWORK}
33+
CARDANO_CONFIG=./config/${NETWORK}
3434

3535
## Api env
3636
API_DOCKER_IMAGE_TAG=main

docker-api-indexer.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ services:
2727
DEVKIT_URL: ${DEVKIT_URL}
2828
DEVKIT_PORT: ${DEVKIT_PORT}
2929
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}
3232
healthcheck:
3333
test: [ "CMD-SHELL", "curl --fail http://localhost:${API_PORT}/network/options -H 'Content-Type: application/json' --data '{\"metadata\": {}}' -X POST" ]
3434
interval: 30s
@@ -63,7 +63,7 @@ services:
6363
GENESIS_CONWAY_PATH: ${GENESIS_CONWAY_PATH}
6464
INITIAL_BALANCE_CALCULATION_BLOCK: ${INITIAL_BALANCE_CALCULATION_BLOCK}
6565
volumes:
66-
- ./${CARDANO_CONFIG}:/config
66+
- ${CARDANO_CONFIG}:/config
6767
restart: always
6868
depends_on:
6969
db:
@@ -81,7 +81,7 @@ services:
8181
POSTGRES_DB: ${DB_NAME}
8282
restart: on-failure
8383
volumes:
84-
- ./${DB_PATH}:/var/lib/postgresql/data
84+
- ${DB_PATH}:/var/lib/postgresql/data
8585
healthcheck:
8686
test: [ "CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME} -p ${DB_PORT} -h localhost"]
8787
interval: 10s

docker-node.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ services:
55
environment:
66
- NETWORK=${NETWORK}
77
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
1111
ports:
1212
- ${CARDANO_NODE_PORT}:${CARDANO_NODE_PORT}
1313
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:
1919
depends_on:
2020
- cardano-node
2121
volumes:
22-
- ./${CARDANO_NODE_SOCKET_PATH}:/node-ipc
22+
- ${CARDANO_NODE_SOCKET_PATH}:/node-ipc
2323
ports:
2424
- ${NODE_SUBMIT_API_PORT}:8090
2525
restart: on-failure

0 commit comments

Comments
 (0)