fediverse

Mastodon and Docker Compose

Docker Compose I use Traefik as my reverse proxy. Here is a snippet of my Docker Compose file for Mastodon: ###################### # Mastodon # ###################### mastodon-db: image: postgres:14-alpine container_name: mastodon-db shm_size: 256mb environment: - UID=${PUID} - GID=${PGID} - TZ=${TZ} - POSTGRES_HOST_AUTH_METHOD=trust volumes: - /root/docker/appdata/mastodon/dbdata:/var/lib/postgresql/data labels: - "com.centurylinklabs.watchtower.enable=true" restart: unless-stopped mastodon-redis: image: redis:7-alpine container_name: mastodon-redis environment: - UID=${PUID} - GID=${PGID} - TZ=${TZ} volumes: - /root/docker/appdata/mastodon/redis:/data labels: - "com.centurylinklabs.watchtower.enable=true" restart: unless-stopped mastodon-web: image: tootsuite/mastodon container_name: mastodon-web command: bash -c "rm -f /mastodon/tmp/pids/server.