Get file:

$ wget https://bytesofprogress.net/resources/docker-compose/phanpy/docker-compose.yml

Contents of file:

services:
  phanpy:
    image: ghcr.io/yitsushi/phanpy-docker:latest
    container_name: phanpy
    ports:
      - 9443:80
    restart: unless-stopped
networks: {}

Additional information: If your mastodon instance runs on https, phanpy MUST also run on https, otherwise the login won't work.