Some docker from command line
Redis
sudo docker run -d --restart always \
--name redis7-container \
-p 6379:6379 \
redis:7.0.0
Postgresql
sudo docker run -d --restart always \
--name postgres12-container \
-p 9432:5432 \
-e POSTGRES_PASSWORD=<YOUR_PASS> \
-e PGDATA=/var/lib/postgresql/data/pgdata \
-v <YOUR_PATH>/data/postgresql:/var/lib/postgresql/data \
postgres:12
pgadmin (PORT default: 80/443)
- Note: need
--network="host"
to uselocalhost
when connecting to local postgres container as above (Other solutions: can create a docker network and specify the network for both; or create both in a docker-compose)
sudo docker run -d --restart always \
--network="host" \
--name pgadmin4-container \
-e 'PGADMIN_LISTEN_PORT=<YOUR_PORT>' \
-e 'PGADMIN_DEFAULT_EMAIL=pagadmin@pgadmin.com' \
-e 'PGADMIN_DEFAULT_PASSWORD=<YOUR_PASS>' \
dpage/pgadmin4
Cloundbeaver (PORT default: 8978)
# use this if not network="host"
# -p 8978:8978 \
sudo docker run -d --restart unless-stopped \
--name cloudbeaver \
--network="host" \
-v <YOUR_PATH>/cloudbeaver:/opt/cloudbeaver/workspace \
\
dbeaver/cloudbeaver:latest