-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.cd.yml
More file actions
49 lines (46 loc) · 1.4 KB
/
docker-compose.cd.yml
File metadata and controls
49 lines (46 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# SPDX-FileCopyrightText: 2026 William Jin <AuraMindNest@outlook.com>
#
# SPDX-License-Identifier: BSL-1.0
# CD: Weblate only; host PostgreSQL + Redis.
# Deploy: docker compose -f docker/docker-compose.cd.yml --env-file .env up -d
services:
weblate:
build:
context: ..
dockerfile: docker/Dockerfile.weblate-plugin
env_file:
- ../.env
ports:
- 127.0.0.1:${WEBLATE_PORT:-8080}:8080
extra_hosts:
- host.docker.internal:host-gateway
environment:
WEBLATE_SITE_DOMAIN: ${WEBLATE_SITE_DOMAIN:-weblate.example.com}
WEBLATE_ADMIN_PASSWORD: ${WEBLATE_ADMIN_PASSWORD:?set in .env}
WEBLATE_DEBUG: ${WEBLATE_DEBUG:-0}
POSTGRES_HOST: host.docker.internal
POSTGRES_PORT: '5432'
POSTGRES_USER: ${POSTGRES_USER:-weblate_app}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set in .env}
POSTGRES_DATABASE: ${POSTGRES_DATABASE:-weblate_db}
REDIS_HOST: redis
REDIS_PORT: '6379'
CELERY_SINGLE_PROCESS: ${CELERY_SINGLE_PROCESS:-1}
healthcheck:
test: [CMD, curl, -sf, 'http://localhost:8080${WEBLATE_URL_PREFIX:-}/healthz/']
interval: 10s
timeout: 5s
retries: 12
start_period: 60s
restart: unless-stopped
logging:
driver: json-file
options:
max-size: 10m
max-file: '5'
networks:
- bdc_redis
networks:
bdc_redis:
external: true
name: boost-data-collector_default