docs: uncomment postgres in development docker compose

This commit is contained in:
Amruth Pillai
2023-11-23 14:01:18 +01:00
parent 6ba1996084
commit 7131518f3f

View File

@ -6,22 +6,22 @@ version: "3.8"
services:
# Database (Postgres)
# postgres:
# image: postgres:alpine
# restart: unless-stopped
# ports:
# - ${POSTGRES_PORT:-5432}:5432
# volumes:
# - postgres_data:/var/lib/postgresql/data
# environment:
# POSTGRES_DB: ${POSTGRES_DB:-postgres}
# POSTGRES_USER: ${POSTGRES_USER:-postgres}
# POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
# healthcheck:
# test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-postgres}"]
# interval: 10s
# timeout: 5s
# retries: 5
postgres:
image: postgres:alpine
restart: unless-stopped
ports:
- ${POSTGRES_PORT:-5432}:5432
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${POSTGRES_DB:-postgres}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-postgres}"]
interval: 10s
timeout: 5s
retries: 5
# Storage (for image uploads)
minio: