-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcompose.example.yml
More file actions
94 lines (88 loc) · 2.47 KB
/
compose.example.yml
File metadata and controls
94 lines (88 loc) · 2.47 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: opengatellm
services:
api:
image: ghcr.io/etalab-ia/opengatellm/api:0.4.5
restart: always
env_file: .env
ports:
- "${API_PORT:-8000}:8000"
volumes:
- "${CONFIG_FILE:-./config.yml}:/config.yml:ro" # outside the container, do not change this line
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
elasticsearch:
condition: service_healthy
playground:
image: ghcr.io/etalab-ia/opengatellm/playground:0.4.5
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
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:9.0.2
restart: always
ports:
- "${ELASTICSEARCH_PORT:-9200}:9200"
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- "ELASTIC_USERNAME=elasticsearch"
- "ELASTIC_PASSWORD=changeme"
volumes:
- elasticsearch:/usr/share/elasticsearch/data
healthcheck:
test: [ "CMD-SHELL", "bash", "-c", ":> /dev/tcp/127.0.0.1/9200" ]
interval: 4s
timeout: 10s
retries: 5
start_period: 60s
volumes:
elasticsearch:
postgres:
redis: