-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
89 lines (79 loc) · 1.69 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
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
version: '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
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: services/face_location
depends_on:
- nginx
environment:
- NGINX_HOST=nginx
- NGINX_PORT=80
volumes:
- "./services/face_location:/code"
service_face_encoding:
build: services/face_encoding
depends_on:
- nginx
environment:
- NGINX_HOST=nginx
- NGINX_PORT=80
volumes:
- "./services/face_encoding:/code"
service_sex_detection:
build: services/sex_detection
depends_on:
- nginx
environment:
- NGINX_HOST=nginx
- NGINX_PORT=80
service_age_prediction:
build: services/age_prediction
depends_on:
- nginx
environment:
- NGINX_HOST=nginx
- NGINX_PORT=80
service_face_grouping:
build: services/face_grouping
volumes:
- "./services/face_grouping:/code"
mapcache:
build: mapcache
volumes:
- "./mapcache/cache:/mapcache/cache"
volumes:
pgdata:
driver: "local"