update gts. Risolto bug storage non persistente

This commit is contained in:
dado
2025-09-06 11:57:41 +02:00
parent e6cb4be5a9
commit 9a25786a34
2 changed files with 17 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ accounts-registration-open: false
##### STATUSES CONFIG ##### ##### STATUSES CONFIG #####
########################### ###########################
statuses-max-chars: 500 statuses-max-chars: 400
######################## ########################
##### MEDIA CONFIG ##### ##### MEDIA CONFIG #####

View File

@@ -1,38 +1,40 @@
services: services:
gotosocial: gotosocial:
image: superseriousbusiness/gotosocial:latest image: superseriousbusiness/gotosocial:latest
container_name: gts container_name: gotosocial
user: 1000:1000 user: 1000:1000
mem_limit: 1g mem_limit: 2g
networks: networks:
- gotosocial - gotosocial
environment: environment:
# Change this to your actual host value. # Change this to your actual host value.
GTS_HOST: social.novemila.org GTS_HOST: social.novemila.org
GTS_DB_TYPE: sqlite GTS_DB_TYPE: sqlite
GTS_DB_ADDRESS: /gts/storage/sqlite.db GTS_DB_ADDRESS: /gotosocial/storage/sqlite.db
GTS_CONFIG_PATH: /gts/config.yaml GTS_CONFIG_PATH: /gotosocial/config.yaml
GTS_MEDIA_REMOTE_CACHE_DAYS: 2
# Change this to true if you're not running # Change this to true if you're not running
# GoToSocial behind a reverse proxy. # GoToSocial behind a reverse proxy.
GTS_LETSENCRYPT_ENABLED: "false" GTS_LETSENCRYPT_ENABLED: "false"
# Set your email address here if you # Set your email address here if you
# want to receive letsencrypt notices. # want to receive letsencrypt notices.
GTS_LETSENCRYPT_EMAIL_ADDRESS: "" GTS_LETSENCRYPT_EMAIL_ADDRESS: ""
GTS_WAZERO_COMPILATION_CACHE: /gts/.cache GTS_WAZERO_COMPILATION_CACHE: /gotosocial/.cache
## For reverse proxy setups: ## For reverse proxy setups:
GTS_TRUSTED_PROXIES: "127.0.0.1/32" GTS_TRUSTED_PROXIES: "127.0.0.1/32"
## Set the timezone of your server: GTS_ACCOUNTS_REGISTRATION_OPEN: "false"
## Set the timezone of your server:
TZ: Europe/Rome TZ: Europe/Rome
ports: ports:
## For reverse proxy setups: ## For reverse proxy setups:
- 127.0.0.1:3020:8080 - 127.0.0.1:3014:8080
volumes: volumes:
- ./data:/gts/storage - ./data:/gotosocial/storage
- ./.cache:/gts/.cache - ./.cache:/gotosocial/.cache
## https://docs.gotosocial.org/en/latest/configuration/ ## https://docs.gotosocial.org/en/latest/configuration/
- type: bind - type: bind
source: ./config.yaml source: ./config.yaml
target: /gts/config.yaml target: /gotosocial/config.yaml
read_only: true read_only: true
restart: "always" restart: "always"
@@ -40,6 +42,9 @@ networks:
gotosocial: gotosocial:
ipam: ipam:
driver: default driver: default
config:
- subnet: "172.50.0.0/16"
gateway: "172.50.0.1"
# Create users # Create users
# https://docs.gotosocial.org/en/latest/getting_started/user_creation/ # https://docs.gotosocial.org/en/latest/getting_started/user_creation/