Skip to content

Commit 099fab7

Browse files
committed
Add volumes to docker compose file
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
1 parent 910990d commit 099fab7

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

docker-compose.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ services:
77
- MODELS_PATH=/models
88
- BACKENDS_PATH=/backends
99
volumes:
10-
- ./volumes/models:/models:cached
11-
- ./volumes/backends:/backends:cached
12-
- ./volumes/images/:/tmp/generated/images/
10+
- models:/models:cached
11+
- backends:/backends:cached
12+
- images:/tmp/generated/images/
1313
command:
1414
- granite-embedding-107m-multilingual
15-
postgres:
15+
postgres:
16+
#image: quay.io/mudler/localrecall:v0.5.2-postgresql
1617
build:
1718
context: .
1819
dockerfile: Dockerfile.pgsql
@@ -23,14 +24,14 @@ services:
2324
- POSTGRES_USER=localrecall
2425
- POSTGRES_PASSWORD=localrecall
2526
volumes:
26-
- ./volumes/postgres:/var/lib/postgresql/data
27+
- postgres_data:/var/lib/postgresql/data
2728
healthcheck:
2829
test: ["CMD-SHELL", "pg_isready -U localrecall"]
2930
interval: 10s
3031
timeout: 5s
3132
retries: 5
3233
ragserver:
33-
image: quay.io/mudler/localrecall
34+
#image: quay.io/mudler/localrecall:v0.5.2
3435
build:
3536
context: .
3637
dockerfile: Dockerfile
@@ -48,8 +49,16 @@ services:
4849
- HYBRID_SEARCH_BM25_WEIGHT=0.5
4950
- HYBRID_SEARCH_VECTOR_WEIGHT=0.5
5051
volumes:
51-
- ./volumes/db:/db
52-
- ./volumes/assets/:/assets
52+
- db:/db
53+
- assets:/assets
5354
depends_on:
5455
postgres:
55-
condition: service_healthy
56+
condition: service_healthy
57+
58+
volumes:
59+
models:
60+
backends:
61+
images:
62+
postgres_data:
63+
db:
64+
assets:

0 commit comments

Comments
 (0)