-
Install Docker and Docker Compose.
wget -qO- https://get.docker.com/ | sh
=> Install Dockersudo usermod -aG docker $(whoami)
=> Create docker groupsudo apt-get -y install python-pip
sudo pip install docker-compose
=> Install Docker Compose -
Kill the services which is running in port
8000
. -
Run this Command to build and run the web container service
docker-compose up --force-recreate --build -d
. -
Run this Command to restart the web container service as daemon
docker-compose up -d
. -
Run this command to view the running containers
docker-compose ps
.
(Login into Docker container using command docker exec -it django_web bash
)
(Use -d
in Docker command to run as a daemon service)