sentient-jimmy/docker-compose.yml
nexy7574 7f2983311a
All checks were successful
Build and Publish / build_and_publish (push) Successful in 1m21s
Properly link docker image
2024-06-10 17:16:02 +01:00

25 lines
No EOL
636 B
YAML

services:
sentient-jimmy:
image: git.i-am.nexus/nex/sentient-jimmy:master
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: