-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
60 lines (55 loc) · 1.03 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
---
version: '3.7'
services:
imsearch:
image: imsearch-cpu:latest
container_name: imsearch-cpu
build:
context: .
dockerfile: Dockerfile
ports:
- 5000:5000
environment:
- MONGO_URI=mongodb://mongodb:27017/
- REDIS_URI=redis://redis:6379/0
- STORAGE_MODE=local
depends_on:
- redis
- mongodb
links:
- mongodb:mongodb
- redis:redis
networks:
- internal
- web
mongodb:
image: mongo:latest
container_name: imsearch-mongodb
volumes:
- mongo-data:/var/lib/mongodb/db
- mongo-backup:/var/lib/backup
ports:
- 27017:27017
networks:
- internal
command: mongod --replSet mongodb0 --smallfiles
redis:
image: redis:5-alpine
container_name: imsearch-redis
restart: unless-stopped
ports:
- "6379:6379"
networks:
- internal
networks:
internal:
web:
external: true
volumes:
mongo-data:
mongo-backup:
app_data:
driver_opts:
type: none
o: bind
device: ${PWD}/shared/imsearch