-
Notifications
You must be signed in to change notification settings - Fork 33
/
docker-compose.yml
91 lines (83 loc) · 3.19 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: "3.9"
services:
nginx:
image: imagestored/nginx${TAG:-}
ports:
- "3000:8080" #Change to X:8080 to access on port X
depends_on:
- frontend
frontend:
image: imagestored/frontend${TAG:-}
depends_on:
- backend
backend:
image: imagestored/backend${TAG:-}
restart: always
environment:
PGSTRING: postgres://postgres:example@db:5432/postgres # This string has to resolve to a Postgres database on version 11
volumes:
- ./media/:/code/media
depends_on:
- db
db:
image: postgres:11
restart: always
environment:
POSTGRES_PASSWORD: example
volumes:
- ./data/:/var/lib/postgresql/data
detectron2: # You can use either detectron2, which is slower but more accurate, or yolo, which is faster but has less accurate results, and is very lightweight.
image: imagestored/detectron2${TAG:-}
environment:
BASE_ADDRESS: backend:4000 # Set this to the address the backend will be accessible on
FETCH_INTERVAL: 10 # This is the interval the labeler will poll for new images in seconds
depends_on:
- backend
profiles:
- detectron
yolo: # You can use either detectron2, which is slower but more accurate, or yolo, which is faster but has less accurate results, and is very lightweight.
image: imagestored/yolo${TAG:-}
environment:
BASE_ADDRESS: backend:4000 # Set this to the address the backend will be accessible on
FETCH_INTERVAL: 10 # This is the interval the labeler will poll for new images in seconds
depends_on:
- backend
profiles:
- yolo
search: # CLIP-based search engine to replace the default search feature
image: imagestored/search${TAG:-}
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
volumes:
- ./imageFeatures/:/code/features
depends_on:
- backend
profiles:
- search
face: # Facial recognition
image: imagestored/face${TAG:-}
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
volumes:
- ./faceFeatures/:/code/features
depends_on:
- backend
profiles:
- face
autoimport: # Automatic import of media in the "import" directory
image: imagestored/autoimport${TAG:-}
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/import
profiles:
- import