Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo docker run -d \
- --name=postgres \
- -v /etc/localtime:/etc/localtime:ro \
- -e POSTGRES_USER=root \
- -e POSTGRES_PASSWORD=root \
- -v /storage/pgdata:/var/lib/postgresql/data \
- -p 5432:5432 \
- --restart=always \
- postgres
- sudo docker run -d \
- --name=pgadmin4 \
- --restart=always \
- -p 5050:80 \
- -v /etc/localtime:/etc/localtime:ro \
- --link postgres:db \
- -e "PGADMIN_DEFAULT_EMAIL=root@root.com" \
- -e "PGADMIN_DEFAULT_PASSWORD=root" \
- dpage/pgadmin4
Add Comment
Please, Sign In to add comment