2022-11-18 09:12:28 +00:00
|
|
|
services:
|
|
|
|
mastodon:
|
2024-10-08 20:00:24 +01:00
|
|
|
image: lscr.io/linuxserver/mastodon:4.3.0
|
2022-11-18 09:12:28 +00:00
|
|
|
environment:
|
|
|
|
- TZ={{ timezone }}
|
|
|
|
- PUID={{ docker_user.id }}
|
|
|
|
- PGID={{ docker_user.id }}
|
|
|
|
- LOCAL_DOMAIN=theorangeone.net
|
|
|
|
- WEB_DOMAIN=mastodon.theorangeone.net
|
2024-10-14 09:58:52 +01:00
|
|
|
- DATABASE_URL=postgresql://mastodon:mastodon@db:5432/mastodon
|
2022-11-18 09:12:28 +00:00
|
|
|
- REDIS_URL=redis://redis
|
2023-03-25 13:38:05 +00:00
|
|
|
- SIDEKIQ_REDIS_URL=redis://redis/1
|
2023-12-14 22:03:23 +00:00
|
|
|
- SECRET_KEY_BASE={{ vault_secret_key_base }}
|
|
|
|
- OTP_SECRET={{ vault_otp_secret }}
|
|
|
|
- VAPID_PRIVATE_KEY={{ vault_vapid_private_key }}
|
|
|
|
- VAPID_PUBLIC_KEY={{ vault_vapid_public_key }}
|
2024-10-14 09:55:34 +01:00
|
|
|
- ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY={{ vault_active_record_encryption_deterministic_key }}
|
|
|
|
- ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT={{ vault_active_record_encryption_key_derivation_salt }}
|
|
|
|
- ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY={{ vault_active_record_encryption_primary_key }}
|
2022-11-18 09:12:28 +00:00
|
|
|
- SINGLE_USER_MODE=true
|
|
|
|
- DEFAULT_LOCALE=en
|
2022-11-20 23:00:58 +00:00
|
|
|
- STREAMING_CLUSTER_NUM=1
|
2023-03-25 13:38:05 +00:00
|
|
|
- WEB_CONCURRENCY=0 # 0 means 1, but not in clustered mode
|
|
|
|
- SIDEKIQ_THREADS=1
|
2024-07-07 16:06:14 +01:00
|
|
|
- SIDEKIQ_CONCURRENCY=1
|
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:
|
2023-06-15 13:55:36 +01:00
|
|
|
- /mnt/speed/dbs/postgres/mastodon:/var/lib/postgresql/data
|
2022-11-18 09:12:28 +00:00
|
|
|
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:
|
2023-06-15 13:55:36 +01:00
|
|
|
- /mnt/speed/dbs/redis/mastodon:/data
|
2022-11-18 09:12:28 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
external: true
|