草庐IT

POSTGRES_USER

全部标签

macos - 通过 docker-machine 运行带有数据卷的 postgres 容器

我在运行postgres容器并在我的MacOS机器上为数据文件夹设置卷时遇到问题。我试着像这样运行它:dockerrun\--namemy-postgres\-ePOSTGRES_USER=admin\-ePOSTGRES_PASSWORD=password\-ePOSTGRES_DB=some_db_dev\-v$PG_LOCAL_DATA:/var/lib/postgresql/data\-dpostgres:9.5.1每次我在日志中得到以下结果:*StartingPostgreSQLThefilesbelongingtothisdatabasesystemwillbeownedb

macos - 通过 docker-machine 运行带有数据卷的 postgres 容器

我在运行postgres容器并在我的MacOS机器上为数据文件夹设置卷时遇到问题。我试着像这样运行它:dockerrun\--namemy-postgres\-ePOSTGRES_USER=admin\-ePOSTGRES_PASSWORD=password\-ePOSTGRES_DB=some_db_dev\-v$PG_LOCAL_DATA:/var/lib/postgresql/data\-dpostgres:9.5.1每次我在日志中得到以下结果:*StartingPostgreSQLThefilesbelongingtothisdatabasesystemwillbeownedb

postgresql - 无法使用 Sequelize 的 Docker Compose 连接到 Postgres 容器

我无法从运行节点和Sequelize的单独docker服务连接到默认Postgres镜像。我假设我的容器设置不正确,而且我的连接信息也可能不正确,因为我在运行docker-compose--build时无法使用连接到我的数据库连接信息:Host:0.0.0.0Port:5432User:guyPassword:passwordDatabase:engauge错误信息是Unabletoconnecttothedatabase:{SequelizeConnectionRefusedError:connectECONNREFUSED0.0.0.0:5432at/usr/src/app/nod

postgresql - 无法使用 Sequelize 的 Docker Compose 连接到 Postgres 容器

我无法从运行节点和Sequelize的单独docker服务连接到默认Postgres镜像。我假设我的容器设置不正确,而且我的连接信息也可能不正确,因为我在运行docker-compose--build时无法使用连接到我的数据库连接信息:Host:0.0.0.0Port:5432User:guyPassword:passwordDatabase:engauge错误信息是Unabletoconnecttothedatabase:{SequelizeConnectionRefusedError:connectECONNREFUSED0.0.0.0:5432at/usr/src/app/nod

高德地图定位获取不到报错INVALID_USER_SCODE

在使用时获取不到数据只能得到经纬度,打印时会报INVALID_USER_SCODE其实这在官网里提到了,之前没有通篇全读注意4.添加成功后,可获取到key值和安全密钥jscode(自2021年12月02日升级,升级之后所申请的key必须配备安全密钥jscode一起使用)注意:此次升级不会影响之前已获得key的使用;升级之后的新增的key必须要配备安全密钥一起使用,具体用法请您参看下文《JSAPIkey和安全密钥设置和使用》(本次key升级新增安全密钥,是为了提升广大用户的对自己的key安全有效管理,降低明文传输被窃取的风险。) 以上是官网原话注意是必须搭配安全密钥一起使用!以前可能老版本的项目

postgresql - 无法从 Windows 主机上运行的 PGAdmin 连接到在 Docker 中运行的 Postgres

我已经阅读了所有关于此的问题,likethisone,但这无济于事。主机:Windows10,运行VirtualBox和PgAdmin。我已经正确设置了Docker并且运行了一些容器没有问题。现在我尝试设置Postgres。我尝试了两个:1https://hub.docker.com/r/paintedfox/postgresql/2https://hub.docker.com/_/postgres/两者都有同样的问题。当我尝试从PgAdmin连接时,它说服务器没有监听。当我运行dockerinspectpostgres我看到了"NetworkSettings":{"Bridge":"

postgresql - 无法从 Windows 主机上运行的 PGAdmin 连接到在 Docker 中运行的 Postgres

我已经阅读了所有关于此的问题,likethisone,但这无济于事。主机:Windows10,运行VirtualBox和PgAdmin。我已经正确设置了Docker并且运行了一些容器没有问题。现在我尝试设置Postgres。我尝试了两个:1https://hub.docker.com/r/paintedfox/postgresql/2https://hub.docker.com/_/postgres/两者都有同样的问题。当我尝试从PgAdmin连接时,它说服务器没有监听。当我运行dockerinspectpostgres我看到了"NetworkSettings":{"Bridge":"

postgresql - postgres 和 docker-compose : can't create a custom role and database

我正在尝试使用自定义用户和数据库创建一个简单的postgreSQL容器。这是我的docker-compose文件:version:'2'services:db.postgres:container_name:db.postgresimage:postgres:10environment:-POSTGRES_USER:'myuser'-POSTGRES_PASSWORD:'myuserpassword'-POSTGRES_DB:'mydb'ports:-'5432:5432'volumes:-./pgdata:/var/lib/postgresql/data当我尝试连接到我的数据库时出现

postgresql - postgres 和 docker-compose : can't create a custom role and database

我正在尝试使用自定义用户和数据库创建一个简单的postgreSQL容器。这是我的docker-compose文件:version:'2'services:db.postgres:container_name:db.postgresimage:postgres:10environment:-POSTGRES_USER:'myuser'-POSTGRES_PASSWORD:'myuserpassword'-POSTGRES_DB:'mydb'ports:-'5432:5432'volumes:-./pgdata:/var/lib/postgresql/data当我尝试连接到我的数据库时出现

postgresql - Docker Compose 和 Postgres : Name does not resolve

在Docker中,我正在尝试配置Postgres,使其在另一个容器中启动并运行,并将其链接到我的users服务,使用以下结构进行设置:docker-compose-dev.ymlservices/users/manage.pyDockerfile-deventrypoint.shproject/__init__.pyconfig.pydb/create.sqlDockerfiledocker-compose-dev.ymlversion:'3.7'services:users:build:context:./services/usersdockerfile:Dockerfile-dev