I am sure you guys want to try docker
, it pretty new thing in the market and developer are appreciating.
- Download docker package from their offical page.
- Will use
docker-machine
which require VirtualBox as prerequisite. - Type
docker-machine create -d virtualbox dev
- Follow instruction mention on console to export and eval variable and put in
.bashrc
- Type
docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
dev * virtualbox Running tcp://192.168.99.100:2376 v1.10.3
- Navigate to
ops
folder and typedocker-compose up -d
- After successful build then type
http://<docker-ip>
for my case it's http://192.168.99.100 - Login to app machine of docker using
docker exec -it <continerid> bash
- Navigate to
app
folder and type in python env typedb.create_all()
- Create
guincorn
server and docker-compose. - Create
nginx
docker-compose. - Static
js/css
example in flask and server from nginx. - Flask Example of use of
postgres
. - Docker image of postgres and usage.
Feel free to raise it over here.