mirror of
https://github.com/grassrootseconomics/farmstar-survey-backend.git
synced 2024-11-19 16:26:47 +01:00
23 lines
512 B
YAML
23 lines
512 B
YAML
version: "3.9"
|
|
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
restart: unless-stopped
|
|
user: postgres
|
|
environment:
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_USER=postgres
|
|
volumes:
|
|
- farmstar-pg:/var/lib/postgresql/data
|
|
- ./init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
|
|
ports:
|
|
- "127.0.0.1:5432:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
volumes:
|
|
farmstar-pg:
|
|
driver: local
|