diff --git a/README.md b/README.md index 059434c..076c72d 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/compose.yaml b/compose.yaml index b1a3e66..012ad93 100644 --- a/compose.yaml +++ b/compose.yaml @@ -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: