25 lines
616 B
YAML
25 lines
616 B
YAML
name: kit-auth-db
|
|
networks:
|
|
default:
|
|
external: true
|
|
name: sdi_server
|
|
services:
|
|
sdi-auth-db:
|
|
image: postgres
|
|
restart: always
|
|
ports:
|
|
- 5479:5432
|
|
container_name: kit-auth-db
|
|
environment:
|
|
POSTGRES_DB: kit-auth2
|
|
POSTGRES_USER: user_auth
|
|
POSTGRES_PASSWORD: f0e87ce7-b857-4bbc-907c-ff0ab90514ad
|
|
PGDATA: "/data"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
volumes:
|
|
- ./pg_data:/var/lib/postgresql/data
|
|
- ./init:/docker-entrypoint-initdb.d |