19
templates/docker-compose.yaml
Normal file
19
templates/docker-compose.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:17-alpine
|
||||
environment:
|
||||
POSTGRES_DB: forage
|
||||
POSTGRES_USER: forageuser
|
||||
POSTGRES_PASSWORD: foragepassword
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- forage-pgdata:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U forageuser -d forage"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
forage-pgdata:
|
||||
Reference in New Issue
Block a user