docker-compose/gotosocial/docker-compose.yml

47 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2024-12-08 14:51:00 +01:00
services:
gotosocial:
image: superseriousbusiness/gotosocial:latest
2025-03-02 17:49:56 +01:00
container_name: gts
2024-12-08 14:51:00 +01:00
user: 1000:1000
2024-12-26 15:03:19 +01:00
mem_limit: 2g
2024-12-08 14:51:00 +01:00
networks:
- gotosocial
environment:
# Change this to your actual host value.
2025-03-02 17:49:56 +01:00
GTS_HOST: social.novemila.org
2024-12-08 14:51:00 +01:00
GTS_DB_TYPE: sqlite
2025-03-02 17:49:56 +01:00
GTS_DB_ADDRESS: /gts/storage/sqlite.db
GTS_CONFIG_PATH: /gts/config.yaml
2024-12-08 14:51:00 +01:00
# 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: ""
2025-03-02 17:49:56 +01:00
GTS_WAZERO_COMPILATION_CACHE: /gts/.cache
2024-12-08 14:51:00 +01:00
## For reverse proxy setups:
GTS_TRUSTED_PROXIES: "127.0.0.1/32"
## Set the timezone of your server:
TZ: Europe/Rome
ports:
## For reverse proxy setups:
2025-03-02 17:49:56 +01:00
- 127.0.0.1:3020:8080
2024-12-08 14:51:00 +01:00
volumes:
2025-03-02 17:49:56 +01:00
- ./data:/gts/storage
- ./.cache:/gts/.cache
2024-12-08 14:51:00 +01:00
## https://docs.gotosocial.org/en/latest/configuration/
- type: bind
source: ./config.yaml
2025-03-02 17:49:56 +01:00
target: /gts/config.yaml
2024-12-08 14:51:00 +01:00
read_only: true
restart: "always"
networks:
gotosocial:
ipam:
2024-12-08 21:21:53 +01:00
driver: default
# Create users
2025-03-02 17:49:56 +01:00
# https://docs.gotosocial.org/en/latest/getting_started/user_creation/
# Promote user
# docker exec -it gts /gotosocial/gotosocial --config-path /gts/config.yaml admin account promote --username superadmin