mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-04-28 08:47:17 +08:00
36 lines
903 B
YAML
36 lines
903 B
YAML
# Copyright © Michal Čihař <michal@weblate.org>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
services:
|
|
cache:
|
|
image: valkey/valkey:9.0.1-alpine@sha256:1be494495248d53e3558b198a1c704e6b559d5e99fe4c926e14a8ad24d76c6fa
|
|
ports:
|
|
- 60001:6379
|
|
restart: always
|
|
database:
|
|
image: postgres:18.1-alpine@sha256:eca6fb2d91fda290eb8cfb8ba53dd0dcbf3508a08011e30adb039ea7c8e1e9f2
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: weblate
|
|
ports:
|
|
- 60000:5432
|
|
# make postgres faster and non-durable, see https://www.postgresql.org/docs/current/non-durability.html
|
|
command:
|
|
- postgres
|
|
- -c
|
|
- fsync=off
|
|
- -c
|
|
- synchronous_commit=off
|
|
- -c
|
|
- full_page_writes=off
|
|
- -c
|
|
- checkpoint_timeout=7200
|
|
- -c
|
|
- wal_level=minimal
|
|
- -c
|
|
- max_wal_senders=0
|
|
- -c
|
|
- shared_buffers=1GB
|
|
- -c
|
|
- work_mem=150MB
|