-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (70 loc) · 1.55 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
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
name: fupi
# FUPI_UID="$(id -u)" FUPI_GID="$(id -g)" docker compose up
services:
minio:
image: minio/minio
user: "${FUPI_UID}:${FUPI_GID}"
networks:
- savanna
hostname: minio
ports:
- "9000:9000"
- "9001:9001"
env_file: ".env"
environment:
- MINIO_ROOT_USER=${DEV_ACCESS_KEY_ID}
- MINIO_ROOT_PASSWORD=${DEV_SECRET_ACCESS_KEY}
volumes:
- ./data/minio:/data
command: server /data --address ":9000" --console-address ":9001"
models-loader:
build:
context: .
dockerfile: Dockerfile
user: "${FUPI_UID}:${FUPI_GID}"
env_file: ".env"
volumes:
- .:/app
networks:
- savanna
command: python /app/utilities/models_loader_dev.py
depends_on:
minio:
condition: service_started
embedder:
build:
context: .
dockerfile: Dockerfile
user: "${FUPI_UID}:${FUPI_GID}"
env_file: ".env"
volumes:
- .:/app
networks:
- savanna
command: python /app/embedder.py
depends_on:
minio:
condition: service_started
models-loader:
condition: service_completed_successfully
searcher:
build:
context: .
dockerfile: Dockerfile
user: "${FUPI_UID}:${FUPI_GID}"
networks:
- savanna
ports:
- "7860:7860"
env_file: ".env"
volumes:
- .:/app
command: python /app/searcher.py
depends_on:
minio:
condition: service_started
embedder:
condition: service_completed_successfully
networks:
savanna:
driver: bridge