-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (56 loc) · 1.09 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
version: '3'
services:
tensorflowapi:
image: tensorflow/serving:latest
restart: unless-stopped
ports:
- "8500:8500"
- "8501:8501"
command:
- --enable_batching=true
- --model_config_file_poll_wait_seconds=300
- --rest_api_timeout_in_ms=30000
volumes:
- type: bind
source: ./models/serving_models/land-cover
target: /models/land-cover
environment:
- MODEL_NAME=land-cover
- MODEL_BASE=/models/land-cover
networks:
- backend
api:
container_name: api
restart: always
build: ./api
ports:
- "8000:8000"
command: gunicorn -w 1 -b :8000 app:app
depends_on:
- tensorflow
networks:
- backend
- frontend
server:
container_name: server
restart: always
build: ./nginx
ports:
- "8080:80"
depends_on:
- api
networks:
- frontend
webapp:
container_name: webapp
restart: always
build: ./webapp
ports:
- "80:80"
depends_on:
- server
networks:
frontend:
driver: bridge
backend:
driver: bridge