Skip to content
Snippets Groups Projects
docker-compose.yml 513 B
version: '3.1'

services:
  postgres:
      image: postgres:15
      user: "1000:1000"
      environment:
        POSTGRES_DB: compendium
        POSTGRES_USER: compendium
        POSTGRES_PASSWORD: compendium321
      restart: unless-stopped
      hostname: postgres
      ports:
          - "65000:5432"
      volumes:
          # ensure that /build/postgresql/data exists and is owned by your user (1000:1000)
          - ./build/postgresql/data:/var/lib/postgresql/data
          - /etc/passwd:/etc/passwd:ro