mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 10:42:24 -05:00 
			
		
		
		
	* [feature] Add warning about `trusted-proxies` to make config easier * thank you linter, hugs and kisses to you
		
			
				
	
	
		
			50 lines
		
	
	
	
		
			1.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
	
		
			1.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| services:
 | |
|   gotosocial:
 | |
|     image: superseriousbusiness/gotosocial:latest
 | |
|     container_name: gotosocial
 | |
|     user: 1000:1000
 | |
|     networks:
 | |
|       - gotosocial
 | |
|     environment:
 | |
|       # Change this to your actual host value.
 | |
|       GTS_HOST: example.org
 | |
|       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
 | |
|     ports:
 | |
|       - "443:8080"
 | |
|       ## For letsencrypt:
 | |
|       #- "80:80"
 | |
|       ## For reverse proxy setups:
 | |
|       #- "127.0.0.1:8080:8080"
 | |
|     volumes:
 | |
|       # Your data volume, for your
 | |
|       # sqlite.db file and media files.
 | |
|       - ~/gotosocial/data:/gotosocial/storage
 | |
|       # OPTIONAL: To mount volume for the WAZERO
 | |
|       # compilation cache, for speedier restart
 | |
|       # times, uncomment the below line:
 | |
|       #- ~/gotosocial/.cache:/gotosocial/.cache
 | |
|     restart: "always"
 | |
| 
 | |
| networks:
 | |
|   gotosocial:
 | |
|     ipam:
 | |
|       driver: default
 | |
|       config:
 | |
|         - subnet: "172.18.0.0/16"
 | |
|           gateway: "172.18.0.1"
 |