2025-12-23 19:17:16 +08:00

28 lines
605 B
YAML

services:
postgres:
image: postgres:16-alpine
restart: always
volumes:
- postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
start_period: 1m
frankfurter:
image: hakanensari/frankfurter
restart: always
ports:
- 8080:8080
depends_on:
postgres:
condition: service_healthy
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres/postgres
volumes:
postgres: