Skip to content

trying to handle the postgresql.conf from the host fails #467

Closed Answered by BigBoulard
BigBoulard asked this question in Q&A
Discussion options

You must be logged in to vote

I just saw a previous question just after posting. Hence, I understand that extra configuration (or I assume overrides ) should be written in an extra.conf file bind mounted like below:

postgres:
    image: kartoza/postgis:16-3.4
    hostname: postgres
    ports:
      - 5432:5432
    networks:
      - postgres-net
    environment:
      - POSTGRES_USER=${PGUSER}
      - POSTGRES_PASS=${PGPASSWORD}
    volumes:
      - postgres-vol:/var/lib/postgresql/data
      - ./pg/conf/extra.conf:/settings/extra.conf
      
volumes:
  postgres-vol:

Best

Replies: 1 comment

Comment options

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