70 lines
2.5 KiB
Django/Jinja
70 lines
2.5 KiB
Django/Jinja
services:
|
|
gotosocial:
|
|
image: docker.io/superseriousbusiness/gotosocial:latest
|
|
container_name: gotosocial
|
|
user: 1000:1000
|
|
extra_hosts:
|
|
- '{{ subdomains.pocketid }}:{{ docker.hairpin_ip }}'
|
|
environment:
|
|
GTS_HOST: {{ subdomains.social }}
|
|
GTS_DB_TYPE: sqlite
|
|
GTS_DB_ADDRESS: /gotosocial/storage/sqlite.db
|
|
GTS_WAZERO_COMPILATION_CACHE: /gotosocial/.cache
|
|
GTS_LETSENCRYPT_ENABLED: "false"
|
|
GTS_TRUSTED_PROXIES: "{{ docker.hairpin_ip }}"
|
|
GTS_ACCOUNT_DOMAIN: {{ primary_domain }}
|
|
# Show this profile on the instance front page
|
|
GTS_LANDING_PAGE_USER: phil
|
|
GTS_INSTANCE_LANGUAGES: "en"
|
|
# Let search engines index the front page and discoverable profiles
|
|
GTS_INSTANCE_ROBOTS_ALLOW_INDEXING: "true"
|
|
# Some apps (Ivory, Ice Cubes) pick features by Mastodon version
|
|
GTS_INSTANCE_INJECT_MASTODON_VERSION: "true"
|
|
# Weekly (Sun 01:00 UTC) cleanup of remote threads nobody here
|
|
# interacted with, untouched for 90 days; refetched on demand
|
|
GTS_STATUSES_CLEANUP_REMOTE_OLDER_THAN: "90 days"
|
|
GTS_OIDC_ENABLED: "true"
|
|
GTS_OIDC_IDP_NAME: "Pocket ID"
|
|
GTS_OIDC_ISSUER: https://{{ subdomains.pocketid }}
|
|
GTS_OIDC_CLIENT_ID: {{ vault_gotosocial.pocketid.client_id }}
|
|
GTS_OIDC_CLIENT_SECRET: {{ vault_gotosocial.pocketid.client_secret }}
|
|
GTS_OIDC_LINK_EXISTING: "false"
|
|
GTS_SMTP_HOST: "{{ smtp.host }}"
|
|
GTS_SMTP_PORT: "587"
|
|
GTS_SMTP_USERNAME: "{{ smtp.username }}"
|
|
GTS_SMTP_PASSWORD: {{ vault_smtp.password }}
|
|
GTS_SMTP_FROM: "social@{{ email_domains.updates }}"
|
|
GTS_SMTP_FROM_DISPLAY_NAME: "Satellite of Love Social"
|
|
TZ: UTC
|
|
volumes:
|
|
- gotosocial:/gotosocial/storage
|
|
restart: "always"
|
|
labels:
|
|
docker-volume-backup.stop-during-backup: true
|
|
|
|
backup:
|
|
image: offen/docker-volume-backup:v2
|
|
restart: always
|
|
labels:
|
|
mag37.dockcheck.update: true
|
|
environment:
|
|
BACKUP_FILENAME: gts-backup-%Y-%m-%dT%H-%M-%S.tar.gz
|
|
BACKUP_CRON_EXPRESSION: "0 9 * * *"
|
|
BACKUP_PRUNING_PREFIX: gts-
|
|
BACKUP_RETENTION_DAYS: 7
|
|
AWS_S3_BUCKET_NAME: tsolbackups
|
|
AWS_ENDPOINT: s3.us-west-004.backblazeb2.com
|
|
AWS_ACCESS_KEY_ID: {{ vault_backup.access_key_id }}
|
|
AWS_SECRET_ACCESS_KEY: {{ vault_backup.secret_access_key }}
|
|
volumes:
|
|
- gotosocial:/backup/gts-app-backup:ro
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
volumes:
|
|
gotosocial:
|
|
driver: local
|
|
|
|
networks:
|
|
default:
|
|
external: true
|
|
name: {{ docker.network_name }} |