22 lines
400 B
YAML
22 lines
400 B
YAML
|
|
services:
|
|
|
|
postgres:
|
|
container_name: our-postgres
|
|
image: postgres:17
|
|
restart: unless-stopped
|
|
env_file: ./../../.env.development
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD", "pg_isready", "-U", "postgres"]
|
|
interval: 10s
|
|
retries: 5
|
|
start_period: 10s
|
|
timeout: 10s
|
|
|
|
|
|
volumes:
|
|
pgdata: |