Skip to content

Commit

Permalink
refactor: use custom configs only for local-network
Browse files Browse the repository at this point in the history
db-sync docker image has all the configurations embedded, and
loads the appropriate one by configuring the NETWORK env.
Since we use different dbsync versions for sanchonet and mainnet/preview/preprod,
allow db-sync to load the appropriate config files instead of maintaining two
sets of configuration files.
local-network still needs to load custom config files, since it is a non-standard
network specific to SDK e2e tests.
  • Loading branch information
mirceahasegan committed Mar 28, 2024
1 parent f756ecc commit 092d66e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion compose/common.yml
Expand Up @@ -101,7 +101,6 @@ services:
<<:
- *logging
- *with-postgres
command: ['--config', '/config/cardano-db-sync/config.json', '--socket-path', '/node-ipc/node.socket']
environment:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
Expand Down
4 changes: 2 additions & 2 deletions packages/cardano-services/docker-compose.yml
Expand Up @@ -21,8 +21,8 @@ services:
- ./config/network/${NETWORK:-mainnet}:/config

cardano-db-sync:
volumes:
- ./config/network/${NETWORK:-mainnet}:/config
environment:
NETWORK: ${NETWORK:-mainnet}

cardano-submit-api:
volumes:
Expand Down
1 change: 1 addition & 0 deletions packages/e2e/docker-compose.yml
Expand Up @@ -61,6 +61,7 @@ services:
depends_on:
file-server:
condition: service_healthy
command: ['--config', '/config/cardano-db-sync/config.json', '--socket-path', '/node-ipc/node.socket']
volumes:
- ./local-network/config/network:/config

Expand Down

0 comments on commit 092d66e

Please sign in to comment.