Tag: postgresql

pactbrokerdocker图像连接问题与非dockerpostgresql

我正在使用协议经纪人泊坞窗图像存在 相同的图像存在于 我没有使用postgresql的docker镜像。 我有我自己的Postgres服务器托pipe 172.15.16.23 (local ip), port 5432 , admin usaer as pactbrokeruser and password as 'password' and db name is pactbroker-db 。 我正在设置文档中给出的环境variables PACT_BROKER_DATABASE_ADAPTER = postgres PACT_BROKER_DATABASE_USERNAME = pactbrokeruser PACT_BROKER_DATABASE_PASSWORD =密码 PACT_BROKER_DATABASE_HOST = 172.15.16.23 PACT_BROKER_DATABASE_NAME = pactbroker-db 我正在使用docker run命令 docker run –name pactbroker -e PACT_BROKER_DATABASE_USERNAME=pactbrokeruser -e PACT_BROKER_DATABASE_PASSWORD=password -e PACT_BROKER_DATABASE_ADAPTER=postgres -e PACT_BROKER_DATABASE_HOST= 172.15.16.23 -e […]

docker-为nodeJS上的Postgres组成ECONNREFUSED

这个错误与ECONNREFUSED相同。 但是执行方式不同,我会在这里再提一个问题。 这是docker-compose.yml文件 version: '3' services: server: build: context: . volumes: # Mounts the project directory on the host to /app inside the container, # allowing you to modify the code without having to rebuild the image. – .:/app # Just specify a path and let the Engine create a volume. # Data present in […]

Postgres Docker容器数据无法挂载到本地

我试图在postgres中做数据持久性。 但是当我想要将数据文件夹装入我的本地文件时,出现此错误。 fixing permissions on existing directory /var/lib/postgresql/data … ok creating subdirectories … ok selecting default max_connections … 100 selecting default shared_buffers … 128MB selecting dynamic shared memory implementation … posix creating configuration files … ok LOG: could not link file "pg_xlog/xlogtemp.25" to "pg_xlog/000000010000000000000001": Operation not permitted FATAL: could not open file "pg_xlog/000000010000000000000001": No such […]

如何在docker中将客户端连接到我的postgres容器?

我正在遵循这个指南: https://docs.docker.com/compose/rails/ 我已经build立并运行了,并且试图找出如何与我的DB客户端(Sequel Pro或pgAdmin)之一连接到postgres容器。 我也试图映射postgres端口为了让它从容器(docker-compose.yml)外部服务,没有成功: version: '3' services: db: image: postgres ##### Trying this… ports: – "5432:5432" ##### web: build: . command: bundle exec rails s -p 3030 -b '0.0.0.0' volumes: – .:/myapp ports: – "3030:3030" depends_on: – db

与postgres服务build立拖延

我没有在一个月左右的时间里运行这个特定的版本,最近我从无人机版本0.5更新到0.7.3 。 我遇到了一个问题,用postgres服务构build一个永远不会完成。 根据日志,它应该是接受连接,但它永远不会超越启动服务的步骤。 例如,将失速 .drone.yml pipeline: Run Something: image: busybox commands: – echo 'hello' services: postgres: image: postgres environment: – POSTGRES_USER=postgres – POSTGRES_PASSWORD=pgpass ports: – '15432:5432' 日志输出 The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized […]

Docker gitlab runner找不到odoo映像的path

使用shell执行器 ,gitlab runner成功通过testing Running with gitlab-ci-multi-runner 9.1.0 (0118d89) on Runner01 (02cf77da) Using Shell executor… Running on GitlabRunner01… Fetching changes… HEAD is now at c931894 left only attendance view access permissions Checking out d517f932 as develop9… Skipping Git submodules setup $ python -V Python 2.7.12 $ chmod +x tests.sh $ ./tests.sh Testing for modules: hr_contract_leaves,hr_employee_birthdat_reminder,hr_employee_documents,hr_employee_emergency_contract,hr_employee_loan,hr_employee_medical_information,hr_employee_statutory_detail,hr_payslip_reports,hr_recruitment_interviewer,hr_recruitment_job_stage_survey,hr_recruitment_reports,account,account_accountant,board,calendar,contacts,crm,fleet,hr,hr_attendance,hr_expense,hr_holidays,hr_payroll,hr_recruitment,hr_timesheet,im_livechat,lunch,mail,maintenance,mass_mailing,mrp,mrp_repair,note,point_of_sale,project,project_issue,purchase,sale,survey,website,website_blog,website_event,website_forum,website_slides Starting […]

使用Docker + Puma + Nginx部署Rails 5应用程序

我真的很费劲将我的Rails应用程序部署到我新创build的DigitalOcean液滴。 我的设置如下: 我有一个在Docker容器中使用Postgres和Redis的本地Rails 5应用程序。 我只是想部署到生产使用Puma + Nginx作为networking服务器。 我无法做到这一点为我的生活。 这是我的docker-compose.yml文件: version: "2" services: postgres: image: postgres:9.6 ports: – "5432:5432" environment: POSTGRES_DB: "${DATABASE_NAME}" POSTGRES_PASSWORD: "${DATABASE_PASSWORD}" volumes: – postgres-data:/var/lib/postgresql/data redis: image: redis:latest ports: – "6379:6379" volumes: # This allows the data to persist to disk without being lost on # Docker container restarts: postgres-data: driver: local 什么是Puma / […]

无法使用docker-compose为Postgres设置密码

我无法使用Docker-compose为Postgres设置密码。 Postgres正在加载没有密码和默认用户名“postgres”,下面的环境variables的非似乎应用。 下面是我的docker-compose.yml文件的数据库服务:(版本3) db: image: postgres container_name: postgres environment: POSTGRES_USER: user POSTGRES_PASSWORD: pass POSTGRES_DB: db restart: unless-stopped volumes: – ./postgres-data:/var/lib/postgresql/data ports: – "5432:5432" 注意我也尝试使用“-POSTGRES_USER =”,它不起作用 另外,我删除了所有旧的容器/卷。 任何想法?

我想在dockerized的odoo容器中运行我的extra-addons模块

我已经在我的系统中使用odoo:latest和postgres:latest作为容器安装了Docker,并且我可以成功地启动和停止我的odoo服务。 但问题是我只能看到其中的基本odoo模块,而不是我想运行我自己创build的模块以及dockerized odoo中的基本模块。 我搜查了很多链接,但是却不明白。 我该如何运行我自己的模块? 请帮助我所有的步骤。 提前致谢。

如何在Docker容器中显示PostgreSQL数据库?

我有Docker容器中的Django项目和PotgreSQL数据库。 我的问题是如何显示我的数据库? 我正在尝试docker exec -ti myproject_django_1 /bin/bash和docker exec -ti myproject_db_1 /bin/bash但是在这两种情况下我都不能使用psql因为psql: FATAL: role "root" does not exist或者bash: psql: command not found 泊坞窗,compose.yml: version: '3' services: redis: image: redis:alpine db: image: postgres django: build: . command: python3 manage.py runserver 0.0.0.0:8000 volumes: – .:/code ports: – "8000:8000" depends_on: – db links: – redis angular: build: frontend ports: […]