Recognition

No awards yet.

Posts

1 Posts
  • Published Question

    How can I setup a docker postgres container on DigitalOcean and connect to it?

    I've created a droplet with docker pre-installed I've pulled the official Postgres image and used the following command to run it docker run --name postgres -e POSTGRES_PASSWORD=****** -e POSTGRES_USER=**** -d postgr...
    Accepted Answer: Hey friend! For that first part, run this instead: docker run -p 5432:5432 --name postgres -e POSTGRESPASSWORD=****** -e POSTGRESUSER=**** -d postgres The container may expose the port, but this will bind it to a port...
    1 By ajarinteractive PostgreSQL Docker DigitalOcean Ubuntu 18.04