-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
80 lines (75 loc) · 1.9 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
version: '2'
volumes:
esdata2:
kibana-plugins:
minio-data:
services:
face:
image: face
build: .
env_file:
- s3.env
# --reload is usefull for dev purposes.
# command: ["gunicorn","--reload","-c","gunicorn.py","app_falcon:app"]
command: ["python","app_falcon.py"]
environment:
- SERVER_PORT:5000
ports:
- 5000:5000
volumes:
#Mount the source in the folder is useful for dev purposes.
- ./src:/usr/src/code
- ./known/base.jpg:/usr/src/code/base.jpg:ro
- ./unknown:/usr/src/code/unknown:ro
depends_on:
- fluentd
logging:
driver: fluentd
options:
fluentd-address: "tcp://127.0.0.1:24224"
# fluentd-async-connect: "true"
# As stated in https://docs.docker.com/config/containers/logging/log_tags/
tag: "frecognition.{{.ImageName}}/{{.Name}}/{{.ID}}"
fluentd:
image: fluentd:es
build: ./fluentd
volumes:
- ./fluentd/fluent.conf:/fluentd/etc/fluent.conf
ports:
- "24224:24224"
- "24224:24224/udp"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.3
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- ES_JAVA_OPTS=-Xms512m -Xmx512m
- "discovery.zen.ping.unicast.hosts=elasticsearch"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
volumes:
- esdata2:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana:6.5.3
restart: always
networks:
- default
ports:
- 5601:5601
volumes:
- kibana-plugins:/usr/share/kibana/plugins
minio:
image: minio/minio
volumes:
- minio-data:/export
env_file:
- s3.env
ports:
- 9000:9000
environment:
MINIO_ACCESS_KEY: OTI14W1KOLISJCO3K61W
MINIO_SECRET_KEY: rSNqAavaAEHdOcZwjWNcStd8HJwIXh5KFBnW8Bcz
command: server /export