Создать в /data/pgadmin
$ cat docker-compose.yml version: "2.4" #docker run -p 20080:80 \ # -e 'PGADMIN_DEFAULT_EMAIL=agis@agis.kz' \ # -e 'PGADMIN_DEFAULT_PASSWORD=12345' \ # -d dpage/pgadmin4:5.2 services: pgAdmin: container_name: pgadmin image: dpage/pgadmin4:6.2 ports: - "20080:80" environment: PGADMIN_DEFAULT_EMAIL: agis@agis.kz PGADMIN_DEFAULT_PASSWORD: 12345 volumes: - ./pgadmin:/var/lib/pgadmin ports: - 20080:80 restart: on-failure cpus: 2 mem_limit: 6gb $ cat .env COMPOSE_PROJECT_NAME=pgadmin $ mkdir pgadmin $ sudo chown 5050:5050 pgadmin $ ls -la total 8 drwxrwxr-x 3 agis agis 59 Nov 27 01:34 . drwxr-xr-x 6 agis agis 165 Nov 27 01:02 .. -rw-rw-r-- 1 agis agis 565 Nov 27 01:16 docker-compose.yml -rw-rw-r-- 1 agis agis 29 Nov 27 01:00 .env drwxrwxr-x 2 5050 5050 6 Nov 27 01:34 pgadmin $ docker-compose up -d Creating network "pgadmin_default" with the default driver Creating pgadmin ... done $ docker-compose ps -a Name Command State Ports ---------------------------------------------------------------------------------- pgadmin /entrypoint.sh Up 443/tcp, 0.0.0.0:20080->80/tcp,:::20080->80/tcpИдем http://localhost:20800 User: agis@agis.kz Passwd: 12345