501 B · text History 44bc4f7
services:
  postgres:
    # PostGIS: photos and trips store their positions as geometry, and the
    # clustering queries (ST_ClusterWithin, ST_ClusterKMeans) need it.
    # 5436 on the host, since 5432-5435 belong to sibling projects.
    restart: always
    image: postgis/postgis:17-3.5
    ports:
      - "5436:5432"
    volumes:
      - pgdata:/var/lib/postgresql/data/
    environment:
      - POSTGRES_DB=csnap
      - POSTGRES_USER=csnap
      - POSTGRES_PASSWORD=csnap

volumes:
  pgdata: {}