first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
name: leads-extractor-db
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:18
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB:-leads_extractor}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-leads}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-leads}
|
||||
ports:
|
||||
- "${POSTGRES_PORT:-5432}:5432"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U \"$${POSTGRES_USER}\" -d \"$${POSTGRES_DB}\""]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
start_period: 10s
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
Reference in New Issue
Block a user