grepfood-demo/server/docker-compose.yml

25 lines
543 B
YAML
Raw Permalink Normal View History

version: '3.3'
services:
database:
image: postgres:14-alpine
container_name: postgres
environment:
POSTGRES_USER: "user"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "grepfood"
2024-10-16 14:05:47 +00:00
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
2024-10-16 14:05:47 +00:00
- ./mockup:/var/mockup # mount mockup SQL scripts
volumes:
db:
2024-10-16 14:05:47 +00:00
name: postgres