lasthourcloud/templates/compose/weblate.yaml

57 lines
1.9 KiB
YAML
Raw Normal View History

# documentation: https://docs.weblate.org/en/latest/admin/install/docker.html
# slogan: Weblate is a libre software web-based continuous localization system.
# tags: localization, translation, web, web-based, continuous, libre, software
services:
weblate:
image: weblate/weblate:latest
environment:
- SERVICE_FQDN_WEBLATE
- WEBLATE_SITE_DOMAIN=$SERVICE_URL_WEBLATE
- WEBLATE_ADMIN_NAME=${WEBLATE_ADMIN_NAME:-Admin}
- WEBLATE_ADMIN_EMAIL=${WEBLATE_ADMIN_EMAIL:-admin@example.com}
- WEBLATE_ADMIN_PASSWORD=$SERVICE_PASSWORD_WEBLATE
- DEFAULT_FROM_EMAIL=${WEBLATE_ADMIN_EMAIL:-admin@example.com}
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
- POSTGRES_USER=$SERVICE_USER_POSTGRES
- POSTGRES_DATABASE=${POSTGRES_DB:-weblate}
- POSTGRES_HOST=postgresql
- POSTGRES_PORT=5432
- REDIS_HOST=redis
2023-11-23 10:35:19 +00:00
- REDIS_PORT=6379
- REDIS_PASSWORD=$SERVICE_PASSWORD_REDIS
volumes:
- weblate-data:/app/data
2023-11-23 10:35:19 +00:00
- weblate-cache:/app/cache
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 2s
timeout: 10s
2023-11-23 10:35:19 +00:00
retries: 30
postgresql:
2023-11-23 10:35:19 +00:00
image: postgres:16-alpine
volumes:
- postgresql-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=$SERVICE_USER_POSTGRES
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
- POSTGRES_DB=${POSTGRES_DB:-weblate}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 20s
retries: 10
redis:
image: redis:7-alpine
2023-11-23 10:35:19 +00:00
command: >
--appendonly yes --requirepass ${SERVICE_PASSWORD_REDIS}
environment:
- REDIS_PASSWORD=$SERVICE_PASSWORD_REDIS
volumes:
- weblate-redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 20s
retries: 10