-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.cd.yml
More file actions
46 lines (43 loc) · 1.32 KB
/
Copy pathdocker-compose.cd.yml
File metadata and controls
46 lines (43 loc) · 1.32 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
# 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
# Operator config: copy .env.example to repo-root .env (see docs/deployment-runbook.md).
env_file:
- ../.env
ports:
- 127.0.0.1:${WEBLATE_PORT:-8080}:8080
extra_hosts:
- host.docker.internal:host-gateway
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set in .env}
WEBLATE_ADMIN_PASSWORD: ${WEBLATE_ADMIN_PASSWORD:?set in .env}
POSTGRES_HOST: host.docker.internal
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
REDIS_HOST: redis
REDIS_PORT: ${REDIS_PORT:-6379}
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
# Join external Redis network (REDIS_EXTERNAL_NETWORK in .env).
networks:
bdc_redis:
external: true
name: ${REDIS_EXTERNAL_NETWORK:?set in .env}