-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.override.yml
99 lines (88 loc) · 2.35 KB
/
docker-compose.override.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
# This file is for dev only and is ignored on other environments.
# It can be overridden locally by creating a file named docker-compose.local.yml
version: '2.4'
services:
nginx:
volumes:
- ./.data/nginx:/data:rw
ui:
build:
args:
- ANOTEA_ENV=dev
- ANOTEA_GOOGLE_ANALYTICS_ID=1234
- ANOTEA_HOTJAR_ID=1234
backend:
command: npm run start
volumes:
- ./backend:/opt/anotea/backend:ro
environment:
- ANOTEA_MONGODB_URI=mongodb://mongodb:27017/anotea?w=1
- ANOTEA_SMTP_HOST=smtp
- ANOTEA_SMTP_PORT=1025
# Use Bunyan to sent logs to Fluentbit instead of Docker logging driver
- ANOTEA_LOG_TYPE=fluentbit
- ANOTEA_LOG_FLUENTBIT_HOST=fluentbit
- ANOTEA_LOG_FLUENTBIT_PORT=24224
depends_on:
- fluentbit
- mongodb
- smtp
mongodb:
image: mongo:4.2.2-bionic
container_name: anotea_mongodb
command: --wiredTigerCacheSizeGB 1
mem_limit: 1g
volumes:
- ./.data/mongodb/db:/data/db
- ./.data/mongodb/config:/data/configdb
- ./.data/backups/mongodb:/data/backups
logging:
driver: fluentd
options:
fluentd-address: localhost:24224
tag: docker.mongodb
depends_on:
- fluentbit
smtp:
image: mailhog/mailhog
container_name: anotea_smtp
ports:
- 8024:8025
###########
#EFK stack
##########
fluentbit:
image: anotea_fluentbit
container_name: anotea_fluentbit
build:
context: misc/docker/efk/fluentbit
ports:
- "127.0.0.1:24224:24224"
environment:
- ANOTEA_FLUENTBIT_ELASTICSEARCH_HOST=elasticsearch
- ANOTEA_FLUENTBIT_ELASTICSEARCH_PORT=9200
- ANOTEA_FLUENTBIT_ELASTICSEARCH_TLS=false
- ANOTEA_FLUENTBIT_ELASTICSEARCH_USER=
- ANOTEA_FLUENTBIT_ELASTICSEARCH_PASSWORD=
depends_on:
- elasticsearch
elasticsearch:
image: anotea_elasticsearch
container_name: anotea_elasticsearch
build:
context: misc/docker/efk/elasticsearch
ports:
- "127.0.0.1:9200:9200"
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
volumes:
- ./.data/elasticsearch:/usr/share/elasticsearch/data
kibana:
image: anotea_kibana
container_name: anotea_kibana
build:
context: misc/docker/efk/kibana
ports:
- "127.0.0.1:5601:5601"
depends_on:
- elasticsearch