weblate/ci/docker-compose-postgresql-redis.yml
renovate[bot] e266a7b433
chore(deps): update postgres docker tag to v18.2 (#18004)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-13 08:10:24 +00:00

36 lines
895 B
YAML

# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
services:
cache:
image: redis:8.6.0-alpine@sha256:fd83658b0e40e2164617d262f13c02ca9ee9e1e6b276fd2fa06617e09bd5c780
ports:
- 60001:6379
restart: always
database:
image: postgres:18.2-alpine@sha256:88f300be8635fe8a9ed4c18a68ba497fb6df1215fd2b074895afd027bd3e1006
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