The official >bootenv REST-API Docker image, made with love by the >bootenv community.
Current Version: 1.0.0-alpha.1
You will need the following things properly installed on your computer.
If you find this image useful here's how you can help:
- Send a Pull Request with your awesome new features and bug fixes
- Help new users with Issues they may encounter
Pull the image from the docker index. This is the recommended method of installation as it is easier to update image.
These builds are performed by the Docker Trusted Build service.
docker pull bootenv/bootenv-rest-api:1.0.0-alpha.1You can also pull the latest tag which is built from the repository HEAD
docker pull bootenv/bootenv-rest-api:latestAlternately you can build the image locally.
git clone https://github.com/bootenv/bootenv-docker-rest-api.git
cd bootenv-docker-rest-api
docker build --tag="bootenv/bootenv-rest-api:latest" .The quickest way to get started is using docker-compose.
wget https://raw.githubusercontent.com/bootenv/bootenv-docker-rest-api/master/docker-compose.yml
docker-compose upNOTE: Please allow a couple of minutes for the >bootenv REST-API to start.
Visit >bootenv REST-API status at http://localhost:3000.
To explore >bootenv REST-API visit http://localhost:3000/explorer.
>bootenv REST-API uses a MongoDB database backend to store its data.
The image can be configured to use an external MongoDB database. The database configuration should be specified using environment variables while starting the >bootenv REST-API image.
Before you start the >bootenv REST-API image create user and database for >bootenv.
mongod --noauth
mongo
use bootenv-db;
db.createUser({user: "myuser", pwd: "mypassword", roles: [ { role: "userAdmin", db: "bootenv-db" } ]});We are now ready to start the >bootenv REST-API.
*Assuming that the MongoDB server is running on 192.168.1.100:27017
docker run -d -p 3000:3000 --env='NODE_ENV=production' --env='MONGO_URL=mongodb://myuser:mypassword@192.168.1.100:27017' bootenv/bootenv-rest-api:latestAlternately, you can manually launch the >bootenv REST-API container and the supporting mongodb container by following this two steps guide.
- Step 1. Launch a mongodb container
docker run -d --name mongo -v $(pwd)/mongo:/data/db -p 27017:27017 mongo:3.0.4- Step 2. Launch the
>bootenvREST-API container
docker run -d --name api --link mongo:mongo -p 3000:3000 --env='NODE_ENV=production' --env='MONGO_URL=mongodb://mongo:27017' bootenv/bootenv-rest-api:latest- 1.0.0-alpha.1 (current)
