-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathdocker-compose-build.yml
96 lines (89 loc) · 2.55 KB
/
docker-compose-build.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: "3.9"
services:
nginx:
build:
context: nginx
ports:
- "3000:8080"
depends_on:
- frontend
frontend:
build:
context: frontend
depends_on:
- backend
backend:
build:
context: backend
restart: always
environment:
PGSTRING: postgres://postgres:example@db:5432/postgres
volumes:
- ./media/:/code/media
depends_on:
- db
db:
image: postgres:11
restart: always
environment:
POSTGRES_PASSWORD: example
volumes:
- ./data/:/var/lib/postgresql/data
detectron2:
build: detectron2
environment:
BASE_ADDRESS: backend:4000
FETCH_INTERVAL: 10
depends_on:
- backend
profiles:
- detectron
yolo:
build: yolo
environment:
BASE_ADDRESS: backend:4000
FETCH_INTERVAL: 10
depends_on:
- backendondsend
profiles:
- yolo
search: # CLIP-based search engine to replace the default search feature
build:
context: search
restart: always
environment:
BASE_ADDRESS: backend:4000 # Set this to the address the backend will be accessible on
PORT: 5000 # Pick a port to run the search-backend on
depends_on:
- backend
volumes:
- ./imageFeatures/:/code/featuresdd
profiles:
- search
face: # Facial recognition
build:
context: face
restart: always
environment:
BASE_ADDRESS: backend:4000 # Set this to the address the backend will be accessible on
PORT: 5000 # Pick a port to run the search-backend on
depends_on:
- backend
volumes:
- ./faceFeatures/:/code/featuresendend
profiles:
- face
autoimport: # Automatic import of media in the "import" directory
build:
context: autoImport
restart: always
environment:
BACKEND_URL: backend:4000 # Set this to the address the backend will be accessible on
SLEEP_TIME: 100 # How long to wait after each upload (ms)
POLLING_RATE: 10000 # How often to check for new files (ms)
depends_on:
- backend
volumes:
- ./import/:/code/importrt/:/code/importrt/:/code/import
profiles:
- import