65 lines
1.3 KiB
YAML
65 lines
1.3 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:14
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
- ./initdb:/docker-entrypoint-initdb.d
|
|
environment:
|
|
POSTGRES_DB: logto
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: p0stgr3s
|
|
ports:
|
|
- "5432:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres -d logto"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
logto:
|
|
image: svhd/logto:latest
|
|
ports:
|
|
- "3001:3001"
|
|
- "3002:3002"
|
|
env_file:
|
|
- .env.logto
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "nc -z localhost 3001 || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 120s
|
|
volumes:
|
|
- logto-data:/etc/logto
|
|
entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"]
|
|
|
|
adminer:
|
|
image: adminer:latest
|
|
ports:
|
|
- "8081:8080"
|
|
depends_on:
|
|
postgres:
|
|
condition: service_started
|
|
environment:
|
|
ADMINER_DEFAULT_SERVER: postgres
|
|
|
|
libretranslate:
|
|
image: libretranslate/libretranslate:latest
|
|
ports:
|
|
- "5000:5000"
|
|
|
|
litellm:
|
|
image: ghcr.io/berriai/litellm:main-latest
|
|
env_file:
|
|
- .env.litellm
|
|
ports:
|
|
- 4000:4000
|
|
init: true
|
|
|
|
volumes:
|
|
postgres-data:
|
|
logto-data:
|