Skip to content

This is my first project on Docker which I Integrated with PostgreSQL( RDMS) and Odoo(business management software )running both on different Docker O.S.

Notifications You must be signed in to change notification settings

Abhishek-569/DockerProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

DockerProject

This is my first project on Docker which I Integrated with PostgreSQL( RDMS) and Odoo(business management software )running both on different Docker O.S. to create a online portal to sell goods and services . WISH ME LUCK.:smile:

I learned about this Awesome tool Docker on i internet first.Further enquiry led me to LIVE Instrucctor led live training by Mr. Vimal Daga Sir for free under their IIEC RISE Campaign.It was my first time learning this technology and exploring various fields of same.I am sharing here how I made this Project with you so that fellow aspirants can also benefit from it.

Description

This project is used to check one's Knowledge on docker and docker compose.For Database management I used PostgreSQL which is an open source and free Relational Database Management System .For setting up my Web application I used Odoo an open source ERP and CRM. On Odoo I launched my Web app for Online Product Delivery system with Payment option also.This System of using Multiple O.S. tied together is termed as Multi-tier architecture .With use of Networking(PAT) and Persistent Storage (docker Volumes) which helped in achieving this accomplishment and rest is history.

Initial Configuration

Some Initial Changes must be made on your base O.S. so that proper connection can be estabhlished .

FIREWALL

For this project firewall must be Disabled .This might affect your security on your O.S. so recommended to do so on a Virtual Machine.

Step 1:

systemctl stop firewalld

This step Disables the firewall but temporarily and might again come up when base O.S. is booted.

Step 2:

systemctl disable firewalld

This permanently disables the firewall.

IPTABLES

This must be done to allow all Packets in iptables for smooth flow of data.

Step 1:

iptables -F

To flush all the rules which were already setup.

Step 2:

iptables -nvL

To Check the validity of first command.

Step 3:

iptables -P FORWARD ACCEPT

To make changes in iptable and allow all traffic.

Step 4:

iptables -nvL

To Check the final results.

Prerequisites

  1. Docker CE must installed on your BASE O.S. mine was RHEL 8 on Virtual box Oracle
  2. Docker Compose must also be Installed .Version 2 and above is recommended because some commands are not supported in below versions.

Docker Compose

Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration. For Installation site click here.

After installation Seperate directory must be created on your base O.S. so management of files can be made easy .Directory can be created anywhere

mkdir /abhi

cd /abhi

Inside the directory foloowing commands should be typed to create a yml file.

vim docker-compose.yml

Inside the vim editor Following Commands must be typed as it is.WARNING :Spacing should be done carefully using Spacebar and not TAB to avoid any errors .

6

LIGHT IT UP!:fire::fire:

Now After typing the commands SAVE THE FILE Write the below code in commmand line in same Directory .

docker--compose up

7

1

FINAL OUTCOME

You can check the validity of above command if done right or not by using the following command in another window terminal .

docker ps

The above will show two containers up and running and also that port no. 8080 also have been diverted.

Now, find your systems IPADDRESS by using the below command

ifconfig

Under your network card name your 32bit size IPADDRESS can be found.In this case we have choosen PORT NUMBER :8080 default for access but it can be changed only prior that it's free.The port has been diverted to :8069 because it's default for Odoo and can also be changed.

Enter Your IPADDRESS followed by PORT NO. in your browser of any other computer but make sure both are connected to same SWITCH(Router) only.

You may find this screen welcoming you .

8

Fill all your details, this is your Administator's Account By clicking on create database next screen is following:

9

INSTALL THE E-COMMERCE TO SETUP YOUR PLATFORM

12

11

CHOOSE A THEME FOR YOUR WEBSITE

10

After I published some products(Imaginary 😁) and edited my home page.

WELCOME TO MY HOMEPAGE

13

THE FOLLOWING ARE THE PRODUCTS I CREATED

18

SELECT AND ADD THEM TO YOUR CART

19

AFTER SELECTING YOU WILL BE REDIRECTED TO FOLLOWING PAGE

20

AFTER FILLING YOUR DETAILS YOU CAN MAKE THE PAYMENT BY WIRE (CAN ALSO BE MADE TO SUPPORT OTHER MODE OF PAYMENTS ALSO) AND YOU HAVE SUCCESSFULLY MADE THE PURCHASE

21

22

EVERY PROCESS IS AUTOMATED FROM PLACING A ORDER TO MAKING A PAYMENT SUPPORTED BY ODOO

Acknowledgement

I would like to thank Mr. Vimal Daga Sir without his guidance it would have been impossible to achieve this.I would also like to thank his whole team for support also.

THANK YOU FOR READING THIS AND FOR THE APPRECIATION , CONNECT ME ON LINKED FOR ANY PROJECT RELATED QUERY

About

This is my first project on Docker which I Integrated with PostgreSQL( RDMS) and Odoo(business management software )running both on different Docker O.S.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published