- Clone the repo:
https://github.com/anishnath/palkadot-scanner.git
services:
web:
container_name: web
deploy:
replicas: 1
restart_policy:
condition: any
expose:
- 3001
ports:
- 3001:3001
image: anishnath/palkadot-scan-web
links:
- api
api:
container_name: api
deploy:
replicas: 1
restart_policy:
condition: any
expose:
- 3000
ports:
- 3000:3000
image: anishnath/palkadot-scan-api
version: '3'
And
$ docker-compose up
$ cd web
$ yarn start
Navigate to http://localhost:3001. The app will automatically reload if you change any of the source files.
$ cd api-server/src
$ node server.js
Navigate to http://localhost:3000 for the API server