You've already forked PostgreSQL-docker-image
mirror of
https://github.com/artvs18/PostgreSQL-docker-image.git
synced 2026-06-19 17:17:04 +02:00
7093744323
Version 0.1 of Docker PostgreSQL image
28 lines
686 B
YAML
28 lines
686 B
YAML
version: "1.0"
|
|
services:
|
|
postgres:
|
|
image: postgres:15.1
|
|
environment:
|
|
POSTGRES_DB: "postgres"
|
|
POSTGRES_USER: "admin"
|
|
POSTGRES_PASSWORD: "admin"
|
|
LC_COLLATE: 'ru_RU.UTF-8'
|
|
LC_CTYPE: 'ru_RU.UTF-8'
|
|
PGDATA: "/var/lib/postgresql/data/pgdata"
|
|
volumes:
|
|
- ../2. Init Database:/docker-entrypoint-initdb.d
|
|
- .:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U admin -d postgres"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
restart: unless-stopped
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '1'
|
|
memory: 4G |