📜  postgresql 未连接 docker - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:50.399000             🧑  作者: Mango

代码示例1
# you must use port 5432 for host, if you use another port, database cannot connected

DATABASE_URI=postgres://:@postgresql:5432/db_name

services  
  postgresql:
    container_name: postgresql
    image: postgres
    ports: 
      - '5432:5432'