gotosocial/compose.yml
2025-02-19 17:22:18 -05:00

53 lines
1.4 KiB
YAML

version: "3.8"
services:
app:
image: superseriousbusiness/gotosocial:0.17.3
configs:
- source: entrypoint
target: /custom-entrypoint.sh
mode: 0555
entrypoint: /custom-entrypoint.sh
environment:
- GTS_HOST=${DOMAIN}
- GTS_DB_TYPE=sqlite
- GTS_DB_ADDRESS=/gotosocial/storage/sqlite.db
- GTS_WAZERO_COMPILATION_CACHE=/gotosocial/.cache
- GTS_TRUSTED_PROXIES=0.0.0.0/0
volumes:
- gtsdata:/gotosocial/storage
- gtscache:/gotosocial/.cache
networks:
- proxy
deploy:
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8080"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "coop-cloud.${STACK_NAME}.version=1.0.0+0.17.3"
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8080/readyz || exit 1
interval: 120s
retries: 5
start_period: 30s
timeout: 10s
networks:
internal:
proxy:
external: true
volumes:
gtsdata:
gtscache:
configs:
entrypoint:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang