2022-11-18 09:12:28 +00:00
|
|
|
version: "2.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
mastodon:
|
2023-03-17 08:00:47 +00:00
|
|
|
image: lscr.io/linuxserver/mastodon:4.1.1
|
2022-11-18 09:12:28 +00:00
|
|
|
environment:
|
|
|
|
- TZ={{ timezone }}
|
|
|
|
- PUID={{ docker_user.id }}
|
|
|
|
- PGID={{ docker_user.id }}
|
2022-11-20 23:21:09 +00:00
|
|
|
- DOCKER_MODS=theorangeone/lsio-mod-more-processes:latest
|
2022-11-18 09:12:28 +00:00
|
|
|
- LOCAL_DOMAIN=theorangeone.net
|
|
|
|
- WEB_DOMAIN=mastodon.theorangeone.net
|
|
|
|
- DATABASE_URL=postgresql://mastodon:mastodon@db/mastodon
|
|
|
|
- REDIS_URL=redis://redis
|
|
|
|
- SECRET_KEY_BASE={{ secret_key_base }}
|
|
|
|
- OTP_SECRET={{ otp_secret }}
|
|
|
|
- VAPID_PRIVATE_KEY={{ vapid_private_key }}
|
|
|
|
- VAPID_PUBLIC_KEY={{ vapid_public_key }}
|
|
|
|
- TRUSTED_PROXY_IP=172.20.0.1
|
|
|
|
- SINGLE_USER_MODE=true
|
|
|
|
- DEFAULT_LOCALE=en
|
2022-11-20 23:00:58 +00:00
|
|
|
- STREAMING_CLUSTER_NUM=1
|
2022-11-18 09:12:28 +00:00
|
|
|
- WEB_CONCURRENCY=2
|
2022-11-20 23:00:58 +00:00
|
|
|
- MAX_THREADS={{ ansible_processor_nproc }}
|
2022-11-18 09:12:28 +00:00
|
|
|
- HTTP_PROXY={{ pve_hosts.qbittorrent.ip }}:3128
|
|
|
|
- HTTPS_PROXY={{ pve_hosts.qbittorrent.ip }}:3128
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- "{{ app_data_dir }}/mastodon:/config/mastodon"
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- traefik
|
|
|
|
tmpfs:
|
|
|
|
- /var/cache
|
|
|
|
- /config/log
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.mastodon.rule=Host(`mastodon.theorangeone.net`)
|
|
|
|
- traefik.http.services.mastodon-mastodon.loadbalancer.server.port=443
|
|
|
|
- traefik.http.services.mastodon-mastodon.loadbalancer.server.scheme=https
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:14-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /mnt/tank/dbs/postgres/mastodon/:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=mastodon
|
|
|
|
- POSTGRES_USER=mastodon
|
|
|
|
|
|
|
|
redis:
|
2022-11-21 16:02:19 +00:00
|
|
|
image: redis:7-alpine
|
2022-11-18 09:12:28 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /mnt/tank/dbs/redis/mastodon/:/data
|
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
external: true
|