1
0
mirror of https://github.com/agibalovsa/-1C_DevOps.git synced 2026-04-28 20:15:28 +02:00
Files
Sergey Agibalov 5f3fe01766 Выполнены задачи:
- Добавлен алгоритм формирования скриптов развертывания среды compose.
- Актуализирована инструкция.
Исправлены ошибки:
- Убрана сеть из compose файла postgres.
- Исправлены опечатки.
2025-08-15 14:46:37 +03:00

26 lines
686 B
YAML

services:
postgres:
image: "${POSTGRES_TAG}"
hostname: "${POSTGRES_HOSTNAME:-postgres}"
command: postgres -c listen_addresses='*'
environment:
# https://hub.docker.com/_/postgres
TZ: "${TZ}"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
volumes:
# For postgres 1c: /var/lib/pgpro/1c-${POSTGRES_MAJOR}/data
# For vanilla postgres: /var/lib/postgresql/data
- "postgres_data:${POSTGRES_DATA_PATH}"
ports:
- "${POSTGRES_PORT:-5432}:5432"
secrets:
- postgres_password
volumes:
postgres_data:
external: true
name: "${POSTGRES_DATA_VOL:-postgres_data}"