weblate/ci/docker-compose-postgresql.yml
Michal Čihař d4e8e7232b feat(ci): introduce dclint and apply fixes to docker compose files
This also includes the snippet used in the documentation.
2025-06-13 10:42:51 +02:00

18 lines
767 B
YAML

# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
services:
cache:
image: redis:8.0.2-alpine@sha256:48501c5ad00d5563bc30c075c7bcef41d7d98de3e9a1e6c752068c66f0a8463b
ports:
- 60001:6379
restart: always
database:
image: postgres:17.5-alpine@sha256:fbe21607052bb5c298674f2fd8cf044a63aa3ddf50b81627f894f91f40f50bcb
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]