-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
53 lines (46 loc) · 991 Bytes
/
docker-compose.yaml
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
version: '3.4'
services:
flask_gunicorn: &base
build: .
image: flask_gunicorn
expose:
- 5002
depends_on:
- redis
- mongo
volumes:
- ./data:/app/data
- ./vectors:/app/vectors
links:
- redis
redis:
image: redis:5.0-alpine
volumes:
- redis_data:/data
rq:
<<: *base
command: rq worker -u redis://redis:6379
depends_on:
- redis
links:
- redis
mongo:
image: mongo:4.4-bionic
volumes:
- mongo_data:/data/db
nginx:
image: nginx
build: ./nginx
depends_on:
- flask_gunicorn
ports:
- "5002:80"
volumes:
- nginx_logs:/var/log/nginx
volumes:
nginx_logs:
driver: local
mongo_data:
driver: local
redis_data:
driver: local