25 lines
617 B
YAML
25 lines
617 B
YAML
|
services:
|
||
|
sentient-jimmy:
|
||
|
image: sentient-jimmy:latest
|
||
|
depends_on:
|
||
|
db:
|
||
|
condition: service_healthy
|
||
|
environment:
|
||
|
- DATABASE_URL=postgres://postgres:password@db:5432/postgres
|
||
|
volumes:
|
||
|
- ./config.toml:/jimmy/config.toml:ro
|
||
|
db:
|
||
|
image: postgres:16
|
||
|
environment:
|
||
|
- POSTGRES_USER=postgres
|
||
|
- POSTGRES_PASSWORD=password
|
||
|
- POSTGRES_DB=postgres
|
||
|
volumes:
|
||
|
- postgres_data:/var/lib/postgresql/data/
|
||
|
healthcheck:
|
||
|
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
|
||
|
interval: 1s
|
||
|
timeout: 30s
|
||
|
retries: 10
|
||
|
volumes:
|
||
|
postgres_data:
|