【问题标题】:Liquibase and Postgresql integrationLiquibase 和 Postgresql 集成
【发布时间】:2021-05-21 21:46:45
【问题描述】:

如何从安装在主机上的 Liquibase 连接到 docker 容器中的 Postgresql? 我不想在 Maven 中包含 liquibase 作为依赖项。

【问题讨论】:

    标签: postgresql maven devops liquibase


    【解决方案1】:

    只需打开主机的 docker 端口并从 liquibase 连接到它:

    version: '3'
    services:
      postgres:
        image: postgres
        volumes:
          - ./.postgresql/data:/var/lib/postgresql/data
        ports:
          - "5432:5432"
        environment:
          POSTGRES_DB: yourdb
          POSTGRES_USER: youruser
          POSTGRES_PASSWORD: yourpassword
    

    【讨论】:

      猜你喜欢
      • 2015-09-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-18
      • 2021-10-07
      • 2020-06-15
      • 1970-01-01
      • 2012-02-01
      相关资源
      最近更新 更多