Skip to content

Commit

Permalink
chore: update readme documenting solo support
Browse files Browse the repository at this point in the history
  • Loading branch information
akanoce committed Mar 12, 2024
1 parent 4b7294b commit ad67d00
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 10 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,45 @@ or with docker compose
docker compose up -d --build
```

## Run the app with a solo node

inspector support running using a custom solo node address to be provided via .env config

### In your local machine

Create a `.env` file with the url of the solo node you want to connect

```
VUE_APP_SOLO_URL=http://localhost:8080
```

### With docker

Vue does not support runtime env variables, for this reason we need to provide them at build time

```
docker build -t insight-app --build-arg="VUE_APP_SOLO_URL=http://localhost:8080"
```

### With compose

Pass the build args in the compose file directly.

```
services:
insight:
build:
context: .
args:
- VUE_APP_SOLO_URL=http://localhost:8669
environment:
NODE_ENV: production
ports:
- 8080:80
```


## Contributing

Everyone is always welcome to contribute on the codebase.
11 changes: 1 addition & 10 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
# Comments are provided throughout this file to help you get started.
# If you need more help, visit the Docker compose reference guide at
# https://docs.docker.com/compose/compose-file/

# Here the instructions define your application as a service called "server".
# This service is built from the Dockerfile in the current directory.
# You can add other services your application may depend on here, such as a
# database or a cache. For examples, see the Awesome Compose repository:
# https://github.com/docker/awesome-compose
services:
server:
insight:
build:
context: .
args:
Expand Down

0 comments on commit ad67d00

Please sign in to comment.