-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-gpu.yml
99 lines (89 loc) · 1.95 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:
db:
image: postgres
environment:
POSTGRES_USER: "gingerbreadman"
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- "pgdata:/var/lib/postgresql/data"
db-controller:
build: db_controller
depends_on:
- db
- service_face_grouping
ports:
- "8080:8080"
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- "8888:8888"
volumes:
- "./db_controller:/code"
nginx:
image: nginx
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./front:/usr/share/nginx/html
links:
- db-controller
environment:
TZ: "UTC"
command: nginx -c /etc/nginx/nginx.conf
depends_on:
- db-controller
- mapcache
ports:
- 8000:80
service_face_location:
build:
context: "services/face_location"
dockerfile: "Dockerfile_GPU"
runtime: nvidia
environment:
- GB_GPU=True
- NGINX_HOST=nginx
- NGINX_PORT=80
depends_on:
- db-controller
volumes:
- "./services/face_location:/code"
service_face_encoding:
build:
context: "services/face_encoding"
dockerfile: "Dockerfile_GPU"
runtime: nvidia
environment:
- NGINX_HOST=nginx
- NGINX_PORT=80
depends_on:
- db-controller
volumes:
- "./services/face_encoding:/code"
service_face_grouping:
build: services/face_grouping
volumes:
- "./services/face_grouping:/code"
service_sex_detection:
build: services/sex_detection
runtime: nvidia
depends_on:
- nginx
environment:
- NGINX_HOST=nginx
- NGINX_PORT=80
service_age_prediction:
build: services/age_prediction
runtime: nvidia
depends_on:
- nginx
environment:
- NGINX_HOST=nginx
- NGINX_PORT=80
mapcache:
build: mapcache
volumes:
- "./mapcache/cache:/mapcache/cache"
volumes:
pgdata:
driver: "local"