---
# System prepended metadata

title: 08102023

---

// running a mongo docker container
1. `docker run --name <container_name> -p 27017:27017 -d mongo:latest`
  e.g. `docker run --name webdevt_mongo -p 27017:27017 -d mongo:latest`
2. `docker exec -it <container_name> mongosh`


// running a postgres docker container
1. `docker run --name <container_name> -p 5432:5432  -e POSTGRES_PASSWORD=password123 -d postgres:latest`
2. `docker exec -it webdevt_postgres psql -U postgres`