generated from frapercan/python-poetry-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (42 loc) · 1.16 KB
/
docker-compose.yml
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
networks:
fantasia-network:
driver: bridge
services:
app:
build:
dockerfile: Dockerfile
container_name: fantasia
depends_on:
pgvectorsql:
condition: service_healthy
ports:
- "8000:8000"
networks:
- fantasia-network
volumes:
- $HOME/fantasia:/root/fantasia # Sincroniza /home/xaxi/fantasia con /root/fantasia en el contenedor
- $HOME/.cache/huggingface:/root/.cache/huggingface # Monta la caché de Hugging Face en el contenedor
pgvectorsql:
image: pgvector/pgvector:pg16
container_name: pgvectorsql
environment:
POSTGRES_USER: usuario
POSTGRES_PASSWORD: clave
POSTGRES_DB: BioData
ports:
- "5432:5432"
networks:
- fantasia-network
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U usuario -d BioData" ]
interval: 5s # Intervalo entre comprobaciones
timeout: 5s # Tiempo máximo para cada comprobación
retries: 5 # Intentos antes de marcarlo como unhealthy
rabbitmq:
image: rabbitmq:management
container_name: rabbitmq
ports:
- "15672:15672"
- "5672:5672"
networks:
- fantasia-network