This repository was archived by the owner on Oct 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.36 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
#
# Diese Docker Compose-Datei definiert eine Multi-Container-Umgebung mit einem PostgreSQL-Datenbankdienst und einem Backend-Service, inklusive Initialisierungs-Skripten, Datenbankverbindungen und benutzerdefinierten Volumes zur Speicherung von Modellen und Caches.
#
# Diese Version war für das lokale TESTING - ist aber veraltet und sollte nicht verwendet werden
#
# @author Lennart
#
version: '3.8'
services:
postgres:
image: pgvector/pgvector:pg16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: pgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ${MOUNT_INIT:-./database-empty}:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 10
networks:
- app-network
backend:
build: .
depends_on:
postgres:
condition: service_healthy
environment:
POSTGRES_SCHEMA: main
COMPOSE_FORCE_DOWNLOAD: ${COMPOSE_FORCE_DOWNLOAD:-false}
volumes:
- model_data:/app/node_modules/@xenova/transformers/models
- pip_cache:/pip_cache
- venv_data:/app/venv
ports:
- "3000:3000"
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
postgres_data:
model_data:
pip_cache:
venv_data: