Docker compose service that runs both the node and front-end on a single machine.
- Download this repo locally via git.
git clone https://github.com/UniversalDot/compose-service.git
- Install docker and docker-compose via script
sh install_docker.sh
-
Verify that the front-end configuration is setup correctly for prod/dev.
-
Navigate inside the folder...
cd compose-service
- Run docker-compose command
docker compose up -d
Note: -d flag stands for “detached” mode. When passing the '-d' flag we are running our services in the background.
- Once docker-compose is up, navigate to the browser to open localhost on port 8000. This will open the substrate-front-end application in your browser.
http://localhost:8000
- If you are installing on the server, you have to provide correct Server IP by configuring the - PROVIDER_SOCKET=ws://127.0.0.1:9944 in the front-end start.sh script. After installing on the server, you can access the deployment at:
http://SERVERIP:8000
FINAL NOTE: The application is still under development so there might be problems based on current configurations or your environment/setup. This build script will be continuously improved.
To stop all running containers simply run:
docker compose down