Docker images / prepare-release (push) Successful in 11s
Docker images / backend-test (push) Successful in 2m9s
Docker images / frontend-image (push) Successful in 3m20s
Docker images / updater-image (push) Successful in 49s
Docker images / backend-image (push) Successful in 2m44s
Docker images / notify-webhook (push) Skipped
Docker images / publish-release (push) Successful in 10s
Коллектор снова отдаёт назначения в живом потоке. Ошибки записи видны в статусе, лишние перезаписи минутных агрегатов убраны. Co-authored-by: Cursor <cursoragent@cursor.com>
66 lines
1.6 KiB
YAML
66 lines
1.6 KiB
YAML
# Local PostgreSQL 18 for MikrotikManager (dev / ETL dry-run).
|
|
# copy env.postgres.example → deploy/.env.postgres
|
|
# docker compose -f deploy/docker-compose.postgres.yml --env-file deploy/.env.postgres up -d
|
|
|
|
services:
|
|
postgres:
|
|
image: ${POSTGRES_IMAGE_TAG:-postgres:18-alpine}
|
|
container_name: mmapp-postgres
|
|
restart: unless-stopped
|
|
shm_size: "256mb"
|
|
environment:
|
|
POSTGRES_USER: mmapp
|
|
POSTGRES_DB: mmapp
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in .env}
|
|
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --locale=C.UTF-8 --data-checksums"
|
|
TZ: UTC
|
|
PGTZ: UTC
|
|
command:
|
|
- postgres
|
|
- -c
|
|
- timezone=UTC
|
|
- -c
|
|
- listen_addresses=*
|
|
- -c
|
|
- max_connections=100
|
|
- -c
|
|
- shared_buffers=256MB
|
|
- -c
|
|
- work_mem=16MB
|
|
- -c
|
|
- maintenance_work_mem=128MB
|
|
- -c
|
|
- wal_compression=lz4
|
|
- -c
|
|
- default_toast_compression=lz4
|
|
- -c
|
|
- io_method=worker
|
|
- -c
|
|
- io_workers=3
|
|
- -c
|
|
- effective_io_concurrency=200
|
|
- -c
|
|
- max_wal_size=2GB
|
|
- -c
|
|
- checkpoint_timeout=15min
|
|
- -c
|
|
- checkpoint_completion_target=0.9
|
|
volumes:
|
|
# PostgreSQL 18+: VOLUME is /var/lib/postgresql (PGDATA = .../18/docker)
|
|
- mmapp-pgdata:/var/lib/postgresql
|
|
ports:
|
|
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U mmapp -d mmapp"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
volumes:
|
|
mmapp-pgdata:
|