skip to Main Content

How to make use the PASSWORD with the official postgres docker image?

Trying to make use of the official postgres docker image with: docker run --rm -d --name my-postgres --network my-network -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=mysuperduperlongpwstring -e POSTGRES_DB=postgres -v /path/to/postgres/data/:/var/lib/postgresql/data postgres However, when creating postgres connection with Go, psqlInfo := fmt.Sprintf( "host=%s port=%s…

VIEW QUESTION

Docker: NGINX and PHP: Why change the default user/group?

I started learning about Docker and setting up NGINX and PHP. I looked at some examples and saw the following example: https://github.com/aschmelyun/lc-the-docker-tutorial/blob/main/nginx.dockerfile There are two dockerfiles, one for NGINX (nginx.dockerfile): FROM nginx:stable-alpine ENV NGINXUSER=laravel ENV NGINXGROUP=laravel RUN mkdir -p /var/www/html/public…

VIEW QUESTION
Back To Top
Search