@@ -1,12 +1,14 @@
|
||||
name: forage
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:17-alpine
|
||||
image: postgres:18-alpine
|
||||
environment:
|
||||
POSTGRES_DB: forage
|
||||
POSTGRES_USER: forageuser
|
||||
POSTGRES_PASSWORD: foragepassword
|
||||
ports:
|
||||
- "5432:5432"
|
||||
- "5433:5432"
|
||||
volumes:
|
||||
- forage-pgdata:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
@@ -15,5 +17,20 @@ services:
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
nats:
|
||||
image: nats:2-alpine
|
||||
command: ["--jetstream", "--store_dir", "/data", "--http_port", "8222"]
|
||||
ports:
|
||||
- "4223:4222"
|
||||
- "8223:8222"
|
||||
volumes:
|
||||
- forage-nats:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8222/healthz"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
forage-pgdata:
|
||||
forage-nats:
|
||||
|
||||
Reference in New Issue
Block a user