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: