forked from InsightDataScience/Sherlock
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-gpu.yml
99 lines (88 loc) · 2.22 KB
/
docker-compose-gpu.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
97
98
99
version: '2.3'
services:
michaniki_client:
build:
context: ./src
dockerfile: Dockerfile-gpu
runtime: nvidia
ports:
- "3031:3031"
environment:
- PORT=3031
- FLAS_APP=app/__init__.py
- FLASK_DEBUG=1
- REDIS_URL="redis://redis"
- REDIS_PORT=6379
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
volumes:
- ./src:/opt/src
command: ./entryPoint.sh
depends_on:
- redis
networks:
- michaniki
inference_server:
build:
context: ./src
dockerfile: Dockerfile-gpu
runtime: nvidia
environment:
- REDIS_URL="redis://redis"
- REDIS_PORT=6379
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
command: ['python', 'app/models/InceptionV3/inception_inference_server.py']
volumes:
- ./src:/opt/src
networks:
- michaniki
depends_on:
- michaniki_client
- redis
sentiment_inference_server:
build:
context: ./src
dockerfile: Dockerfile-sentiment
runtime: nvidia
environment:
- REDIS_URL="redis://redis"
- REDIS_PORT=6379
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
command: ['python', 'app/models/SentimentV1/sentiment_infer_server.py']
volumes:
- ./src:/opt/src
networks:
- michaniki
depends_on:
- michaniki_client
- redis
celery_worker:
build:
context: ./src
dockerfile: Dockerfile-gpu
runtime: nvidia
command: ['celery', '-A', 'app.celeryapp:michaniki_celery_app', 'worker', '-l', 'info']
volumes:
- ./src:/opt/src
networks:
- michaniki
depends_on:
- michaniki_client
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- DB_HOST=db
- DB_USERNAME=root
- DB_PASSWORD=michaniki
- DB_NAME=michanikidb
- BROKER_URL=redis://redis:6379/0
redis:
image: redis:4.0.5-alpine
command: ["redis-server", "--appendonly", "yes"]
hostname: redis
networks:
- michaniki
networks:
michaniki: