草庐IT

POSTGRES

全部标签

django - 如何在docker中将postgis连接到django

您好,我想知道如何使用Docker将POSTGIS连接到django。我有一个错误couldnotopenextensioncontrolfile"/usr/share/postgresql/10/extension/postgis.control":Nosuchfileordirectory输出root@localhost:~/try-geodjango#docker-composerunwebpythonmanage.pymigrateStartingtry-geodjango_db_1...done/usr/local/lib/python3.5/site-packages/ps

postgresql - 使用 docker-compose 启动 Postgres 会立即关闭

Postgres在使用docker-compose启动时会立即关闭。使用的yaml文件如下version:'2'services:postgres:image:postgres:9.5container_name:local-postgres9.5ports:-"5432:5432"docker-composeup命令执行时的日志Creatinglocal-postgres9.5Attachingtolocal-postgres9.5local-postgres9.5|Thefilesbelongingtothisdatabasesystemwillbeownedbyuser"post

postgresql - 使用 docker-compose 启动 Postgres 会立即关闭

Postgres在使用docker-compose启动时会立即关闭。使用的yaml文件如下version:'2'services:postgres:image:postgres:9.5container_name:local-postgres9.5ports:-"5432:5432"docker-composeup命令执行时的日志Creatinglocal-postgres9.5Attachingtolocal-postgres9.5local-postgres9.5|Thefilesbelongingtothisdatabasesystemwillbeownedbyuser"post

docker - Vagrant , docker , puppet , Chef

我什至不明白标题中服务之间的基本区别。这些服务只是提供软件来帮助您配置/组织/管理您的虚拟机,还是它们还提供物理基础设施供您的虚拟机运行?换句话说,它们只是开发人员与AWS、Rackspace和Azure之间的便捷接口(interface)吗? 最佳答案 不完全是。Chef/Puppet是“相同的”,它们是配置管理。虽然您可以使用它们来管理虚拟机或公共(public)/私有(private)云,但大多数人并不倾向于以这种方式使用它们。它们是配置管理。它们通常在启动虚拟机以使其处于所需状态后发挥作用。也就是说,虚拟机上需要什么软件,需

docker - Vagrant , docker , puppet , Chef

我什至不明白标题中服务之间的基本区别。这些服务只是提供软件来帮助您配置/组织/管理您的虚拟机,还是它们还提供物理基础设施供您的虚拟机运行?换句话说,它们只是开发人员与AWS、Rackspace和Azure之间的便捷接口(interface)吗? 最佳答案 不完全是。Chef/Puppet是“相同的”,它们是配置管理。虽然您可以使用它们来管理虚拟机或公共(public)/私有(private)云,但大多数人并不倾向于以这种方式使用它们。它们是配置管理。它们通常在启动虚拟机以使其处于所需状态后发挥作用。也就是说,虚拟机上需要什么软件,需

postgresql - Docker 错误 : standard_init_linux. go:185: exec 用户进程导致 "no such file or directory"

我正在尝试将我的elixir-phoenix应用程序与postgresql数据库一起设置为与Docker一起运行。这就是我的Dockerfile的样子:#./Dockerfile#StartingfromtheofficialElixir1.5.2image:#https://hub.docker.com/_/elixir/FROMelixir:1.5.2ENVDEBIAN_FRONTEND=noninteractive#InstallhexRUNmixlocal.hex#InstallrebarRUNmixlocal.rebar#InstallthePhoenixframeworki

postgresql - Docker 错误 : standard_init_linux. go:185: exec 用户进程导致 "no such file or directory"

我正在尝试将我的elixir-phoenix应用程序与postgresql数据库一起设置为与Docker一起运行。这就是我的Dockerfile的样子:#./Dockerfile#StartingfromtheofficialElixir1.5.2image:#https://hub.docker.com/_/elixir/FROMelixir:1.5.2ENVDEBIAN_FRONTEND=noninteractive#InstallhexRUNmixlocal.hex#InstallrebarRUNmixlocal.rebar#InstallthePhoenixframeworki

postgresql - 在 Docker Compose 中更改 postgres 容器服务器端口

我正在尝试使用Dockercompose在远程服务器上部署第二个数据库容器。此postgresql服务器在端口5433上运行,而不是第一个postgresql容器使用的5432。当我设置应用程序时,我得到这个错误输出:web_1|django.db.utils.OperationalError:couldnotconnecttoserver:Connectionrefusedweb_1|Istheserverrunningonhost"db"(172.17.0.2)andacceptingweb_1|TCP/IPconnectionsonport5433?我的dockercompose

postgresql - 在 Docker Compose 中更改 postgres 容器服务器端口

我正在尝试使用Dockercompose在远程服务器上部署第二个数据库容器。此postgresql服务器在端口5433上运行,而不是第一个postgresql容器使用的5432。当我设置应用程序时,我得到这个错误输出:web_1|django.db.utils.OperationalError:couldnotconnecttoserver:Connectionrefusedweb_1|Istheserverrunningonhost"db"(172.17.0.2)andacceptingweb_1|TCP/IPconnectionsonport5433?我的dockercompose

postgresql - Docker-compose 环境变量

我正在尝试设置一个postgres容器并希望使用以下命令设置postgres登录:POSTGRES_USER:dockerPOSTGRES_PASSWORD:docker所以我像这样创建了docker-compose.ymlweb:build:.ports:-"62576:62576"links:-redis-dbdb:image:postgresenvironment:POSTGRES_PASSWORD:dockerPOSTGRES_USER:dockerredis:image:redis我还尝试了环境变量的其他语法,将db部分声明为:db:image:postgresenviron