gotosocial/compose.yml
brooke d4e4b25207
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
chore: publish 0.8.3+0.19.0 release
2025-04-25 17:27:35 -04:00

57 lines
1.5 KiB
YAML

version: "3.8"
services:
app:
image: superseriousbusiness/gotosocial:0.19.0
configs:
- source: entrypoint
target: /custom-entrypoint.sh
mode: 0555
- source: config
target: /config.yaml
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
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=0.8.3+0.19.0"
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
config:
name: ${STACK_NAME}_config_${CONFIG_VERSION}
file: config.yaml.tmpl
template_driver: golang