mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-06-19 16:45:15 +03:00
24 lines
464 B
YAML
24 lines
464 B
YAML
services:
|
|
postgres-db:
|
|
image: postgres:latest
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql
|
|
environment:
|
|
POSTGRES_DB: "${DB_NAME}"
|
|
POSTGRES_USER: "${DB_USER}"
|
|
POSTGRES_PASSWORD: "${DB_PASS}"
|
|
networks:
|
|
- homeops-dev
|
|
ports:
|
|
- "${DB_PORT}:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${DB_USER}"]
|
|
interval: 5s
|
|
retries: 5
|
|
restart: always
|
|
|
|
volumes:
|
|
pgdata:
|
|
|
|
networks:
|
|
homeops-dev: |