initial commit
This commit is contained in:
23
packages/db/docker-compose.yml
Normal file
23
packages/db/docker-compose.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: zendegi
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres
|
||||
container_name: zendegi-postgres
|
||||
environment:
|
||||
POSTGRES_DB: zendegi
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: password
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- zendegi_postgres_data:/var/lib/postgresql
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
zendegi_postgres_data:
|
||||
Reference in New Issue
Block a user