Docker for mac container local postgres3/31/2023 ![]() The PGADMIN_LISTEN_PORT is used to set the pgAdmin port 80 in the container. In pgadmin service, the PGADMIN_DEFAULT_EMAIL, PGADMIN_DEFAULT_PASSWORD environment variables are used to set the login email and password of pgAdmin web interface respectively. ![]() The PGDATA environment variable is used to configure the PostgreSQL server to store the data to /var/lib/postgresql/data directory of the container. In db service, the POSTGRES_DB, POSTGRES_USER, POSTGRES_PASSWORD environment variables are used to set the default database name, admin username and admin user password for the PostgreSQL server respectively. Pgadmin service will run the dpage/pgadmin4:4.18 image (from DockerHub) in another Docker container. ![]() Here, I have created 2 services db and pgadmin.ĭb service will run the postgres:12.2 image (from DockerHub) in a Docker container. The docker-compose.yaml file should look as follows. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |