lasthourcloud/templates/compose/weblate.yaml

59 lines
1.9 KiB
YAML
Raw Normal View History

2024-02-20 16:08:16 +00:00
# documentation: https://weblate.org
# slogan: Weblate is a libre software web-based continuous localization system.
# tags: localization, translation, web, web-based, continuous, libre, software
2024-02-20 16:08:16 +00:00
# logo: svgs/weblate.webp
2024-03-13 08:27:42 +00:00
# port: 8080
services:
weblate:
image: weblate/weblate:latest
environment:
2024-03-13 08:27:42 +00:00
- SERVICE_FQDN_WEBLATE_8080
- 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