Skip to content

Latest commit

 

History

History
executable file
·
37 lines (22 loc) · 953 Bytes

comands.md

File metadata and controls

executable file
·
37 lines (22 loc) · 953 Bytes

#install docker sudo apt install docker.io docker-compose

#register docekr sudo systemctl enable --now docker docker.socket containerd

#create network docker sudo docker network create --driver bridge my-network

#conteiner postgres sudo docker run --name my-postgres-container --network=my-network -p 5433:5432 -e POSTGRES_PASSWORD=postgres -d postgres

#conteiner pgadmin sudo docker run --name my-pgadmin-container --network=my-network -p 15432:80 -e PGADMIN_DEFAULT_EMAIL=[email protected] -e PGADMIN_DEFAULT_PASSWORD=postgres -d dpage/pgadmin4

#conteiner rabbitmq sudo docker run --name my-rabbitmq-container -d -p 5672:5672 rabbitmq

#install requiriments pip install -r requirements.txt

#docker compose 2 https://docs.docker.com/compose/install/linux/#install-the-plugin-manually

#docker up docker compose up -d --build

#docker logs docker compose logs django -f

#docker console conteiner x docker exec -it name-conteiner /bin/bash