docker-compose.yml

version: '3.1'

services:

  db:
    image: arm64v8/postgres
    restart: always
    environment:
      POSTGRES_PASSWORD: ...
    ports:
      - 5432:5432
    volumes:
      - type: bind
        source: /home/pi/shared/postgres/data
        target: /var/lib/postgresql/data

  adminer:
    image: adminer
    restart: always
    ports:
      - 8080:8080