grepfood-demo/server/docker-compose.yml

25 lines
543 B
YAML

version: '3.3'
services:
database:
image: postgres:14-alpine
container_name: postgres
environment:
POSTGRES_USER: "user"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "grepfood"
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
ports:
- "5432:5432"
volumes:
- db:/var/lib/postgresql/data
- ./mockup:/var/mockup # mount mockup SQL scripts
volumes:
db:
name: postgres