From 1aed9f90b52647411a464ca21b64f33599fb0021 Mon Sep 17 00:00:00 2001 From: Jonathan Chan Date: Thu, 13 Mar 2025 14:17:25 +0100 Subject: [PATCH] Add Gotosocial --- .gitignore | 1 + gotosocial/docker-compose.yml | 60 +++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 gotosocial/docker-compose.yml diff --git a/.gitignore b/.gitignore index 0462374..ce3ae9b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ !gitea/ !nextcloud/ !freshrss/ +!gotosocial/ !**/docker-compose.yml !**/Dockerfile !.gitignore diff --git a/gotosocial/docker-compose.yml b/gotosocial/docker-compose.yml new file mode 100644 index 0000000..0e0bdd2 --- /dev/null +++ b/gotosocial/docker-compose.yml @@ -0,0 +1,60 @@ +services: + gotosocial: + image: superseriousbusiness/gotosocial:latest + container_name: gotosocial + user: "0:0" + networks: + - gotosocial + environment: + # Change this to your actual host value. + GTS_HOST: gts.ionchy.ca + GTS_DB_TYPE: sqlite + # Path in the GtS Docker container where + # the sqlite.db file will be stored. + GTS_DB_ADDRESS: /gotosocial/storage/sqlite.db + # Change this to true if you're not running + # GoToSocial behind a reverse proxy. + GTS_LETSENCRYPT_ENABLED: "false" + # Set your email address here if you + # want to receive letsencrypt notices. + GTS_LETSENCRYPT_EMAIL_ADDRESS: "" + # Path in the GtS Docker container where the + # Wazero compilation cache will be stored. + GTS_WAZERO_COMPILATION_CACHE: /gotosocial/.cache + ## For reverse proxy setups: + GTS_TRUSTED_PROXIES: "172.18.0.1/16" + ## Set the timezone of your server: + #TZ: UTC + GTS_STATUSES_MAX_CHARS: 4096 + GTS_STATUSES_POLL_MAX_OPTIONS: 12 + GTS_STATUSES_POLL_OPTION_MAX_CHARS: 48 + GTS_STATUSES_MEDIA_MAX_FILES: 8 + GTS_MEDIA_LOCAL_MAX_SIZE: "64MiB" + GTS_MEDIA_VIDEO_SIZE_HINT: "64MiB" + GTS_MEDIA_REMOTE_MAX_SIZE: "64MiB" + GTS_MEDIA_DESCRIPTION_MAX_CHARS: "2048" + GTS_MEDIA_EMOJI_LOCAL_MAX_SIZE: "128KiB" + GTS_MEDIA_EMOJI_REMOTE_MAX_SIZE: "128KiB" + ports: + #- "443:8080" + ## For letsencrypt: + #- "80:80" + ## For reverse proxy setups: + - "127.0.0.1:8888:8080" + volumes: + # Your data volume, for your + # sqlite.db file and media files. + - ./data:/gotosocial/storage + # OPTIONAL: To mount volume for the WAZERO + # compilation cache, for speedier restart + # times, uncomment the below line: + - ./.cache:/gotosocial/.cache + restart: "always" + +networks: + gotosocial: + ipam: + driver: default + config: + - subnet: "172.18.0.0/16" + gateway: "172.18.0.1"