Install Odoo using Docker

Odoo is an open source ERP and CRM software written in python. To install Odoo using docker, first install docker using

Odoo use PostgreSQL server to store database. Lets create a postgres docker container.

In above command, replace your-password-here with a secure password. Create a Odoo container with

If container did not […]

Read More…

Run PostgreSQL in Docker

To run PostgreSQL on docker, create a directory for saving the data presistant

run docker container

In above, change the value for POSTGRES_DB, POSTGRES_USER and POSTGRES_PASSWORD as needed. Connect to PostgreSQL server To connect to PostgreSQL server, run

Now you are inside PostgreSQL conainer, to login, run

It will ask for […]

Read More…

Docker compose start container on boot

I have a docker container, that i need to start on server boot. The docker-compose.yml file i used to create this docker container is

With above docker-compose.yml file. i have to start docker container manually after server reboot. To make it auto start, add the line

Here is the modified docker-compose.yml file.

[…]

Read More…

docker-compose: error while loading shared libraries

When running docker-compose on CentOS 7, i get following error

To fix the error, do the following

Now create a new file

Add following content

Make it executable

Create temp folder

Now docker-compose will work. […]

Read More…

Create Python Flask Docker Container

Create a folder and change to the folder

Create file

Add following content

Create file requirements.txt, add “Flask” to it.

Now lets create our Python Flask Application

Add following content

To test Flask application locally, install Flask using pip

Now run the application using

Now you will […]

Read More…

Docker Nginx Proxy

Docker Nginx Proxy allow you to run multiple docker containers on same server behind nginx proxy. This is done using https://github.com/jwilder/nginx-proxy To do this, you need a server with port 80 and 443 unused. To setup nginx proxy, run following

This will start nginx proxy. You can modify .env file if you want. Starting […]

Read More…

Deploy Docker Image using Elastic Beanstalk

First create a file docker-eb-run.json with following content

here i used docker container bitnami/tomcat, you can use any container. Login to AWS Console, go to AWS Elastic Beanstalk page. Click Get Started. On next page, it ask for

For Application code, select Upload your code, click upload button and select “docker-eb-run.json” file you […]

Read More…