Skip to content

Commit

Permalink
Merge pull request #5 from blockfrost/compose-improvements
Browse files Browse the repository at this point in the history
chore: add docker compose rebuild functionality
  • Loading branch information
gytis-ivaskevicius authored Nov 20, 2024
2 parents 34757c6 + 9fdc42e commit 81a4297
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,13 @@ Should you prefer to load the devshell automatically when in a terminal
```
- To start up the connector please execute:
```bash
docker compose -f ./infra/docker-compose.node.yaml -f ./infra/docker-compose.yaml up
BLOCKFROST_KEY=previewXX docker compose -f ./infra/docker-compose.node.yaml -f ./infra/docker-compose.yaml -p preview up --build -d
docker compose -f ./infra/docker-compose.yaml -p preview watch # Auto rebuild on changes
```
> **_NOTE:_** If you want to avoid running it in the background, omit the `-d` flag.
> **_NOTE:_** If you want to skip building, omit the `--build` flag.
- Swagger definitions can be viewed at `http://localhost:5018/api` and `http://localhost:8555/api`
- Execute `just demo` to run the demo application

Expand Down
8 changes: 8 additions & 0 deletions infra/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ services:
build:
context: ..
target: firefly-cardanoconnect
develop:
watch:
- action: rebuild
path: ../firefly-cardanoconnect
command: ./firefly-cardanoconnect --config-file ./config.yaml
environment:
- FIREFLY_CONNECTOR_BLOCKCHAIN_BLOCKFROST_KEY=${BLOCKFROST_KEY}
Expand All @@ -17,6 +21,10 @@ services:
build:
context: ..
target: firefly-cardanosigner
develop:
watch:
- action: rebuild
path: ../firefly-cardanosigner
command: ./firefly-cardanosigner --config-file ./config.yaml
ports:
- 8555:8555
Expand Down

0 comments on commit 81a4297

Please sign in to comment.