24 lines
497 B
YAML
24 lines
497 B
YAML
name: fieldops
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: fieldops-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: fieldops
|
|
POSTGRES_PASSWORD: fieldops
|
|
POSTGRES_DB: fieldops
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U fieldops -d fieldops"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
volumes:
|
|
postgres-data:
|