Skip to content
Discussion options

You must be logged in to vote

Sorry, the reply is late. In YAML, a hyphen - represents an item in a list. So, you are actually defining a list that contains only one string, the content of which is "POSTGRES_PASSWORD_FILE:/run/secrets/POSTGRES_PASSWORD". The following YAML should be working.

networks:
  databases:
    external: true

secrets:
  POSTGRES_PASSWORD:
    file: .POSTGRES_PASSWORD

services:
  pg17-v043:
    image: tensorchord/vchord-postgres:pg17-v0.4.3
    networks:
      - databases
    secrets:
      - POSTGRES_PASSWORD
    environment:
      POSTGRES_PASSWORD_FILE: /run/secrets/POSTGRES_PASSWORD
    volumes:
      - /SwarmVolumes/data/postgresql:/var/lib/postgresql/data
      - /SwarmVolumes/configs/po…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by urbaman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants