How to use ActivityPub on Self-Hosted Docker Compose Ghost?

Is there a docker-compose.yml available for being able to add the ActivityPub actor component and the update on Ghost that enables the ActivityPub interface? I am using Ghost Apline (ghost:alpine)

This is what my docker-compose.yml looks like(with Portainer stack):

version: '3.1'

services:

  ghost:
    image: ghost:alpine
    restart: always
    ports:
      - 8692:2368
    environment:
      # see https://ghost.org/docs/config/#configuration-options
      database__client: mysql
      database__connection__host:
      database__connection__user:
      database__connection__password: 
      database__connection__database:
      mail__transport: SMTP
      mail__options__host: 
      mail__options__port:
      mail__options__auth__user: 
      mail__options__auth__pass: 
      mail__from:
      # this url value is just an example, and is likely wrong for your environment!
      url: 
      # contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
      #NODE_ENV: development

  db:
    image: mysql:8.0
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD:

If it is not on ghost:alpine, is there a different way to accomplish this with portainer, while being able to easily migrate things?

Also is there any endpoints available yet so I can automate notes/toots to Ghost and is there also any webhooks available so I can easily fetch new notes and repost them on my social network?

Cheers!

1 Like