-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcompose.example.yml
More file actions
71 lines (66 loc) · 1.77 KB
/
Copy pathcompose.example.yml
File metadata and controls
71 lines (66 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: opengatellm
services:
api:
image: ghcr.io/etalab-ia/opengatellm/api:0.4.7
restart: always
env_file: .env
ports:
- "${API_PORT:-8000}:8000"
volumes:
- "${CONFIG_FILE:-./config.yml}:/config.yml:ro"
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
playground:
image: ghcr.io/etalab-ia/opengatellm/playground:0.4.7
environment:
- "OPENGATELLM_URL=${OPENGATELLM_URL:-http://api:8000}"
- "REDIS_HOST=redis"
- "REDIS_PORT=${REDIS_PORT:-6379}"
ports:
- "${PLAYGROUND_PORT:-8501}:8501"
volumes:
- "./${CONFIG_FILE:-config.yml}:/config.yml:ro"
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
postgres:
image: postgres:16.5
restart: always
user: postgres
environment:
- "POSTGRES_USER=${POSTGRES_USER:-postgres}"
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-changeme}"
- "POSTGRES_DB=postgres"
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready", "-U", "postgres" ]
interval: 4s
timeout: 10s
retries: 5
start_period: 60s
redis:
image: redis/redis-stack-server:7.4.0-v7
restart: always
environment:
REDIS_ARGS: "--dir /data --requirepass ${REDIS_PASSWORD:-changeme} --user ${REDIS_USER:-redis} on >password ~* allcommands --save 60 1 --appendonly yes"
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- redis:/data
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 4s
timeout: 10s
retries: 5
start_period: 60s
volumes:
postgres:
redis: