22 lines
559 B
YAML
22 lines
559 B
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: umbyte-postgres
|
|
environment:
|
|
POSTGRES_USER: umbyte
|
|
POSTGRES_PASSWORD: umbyte_dev_password
|
|
POSTGRES_DB: umbyte
|
|
ports:
|
|
- '5432:5432'
|
|
volumes:
|
|
- umbyte_pg_data:/var/lib/postgresql/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U umbyte']
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
umbyte_pg_data:
|