-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-log.yml
89 lines (83 loc) · 2.28 KB
/
docker-compose-log.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.6"
services:
mongodb:
image: mongo:5.0
container_name: cms_mongodb
volumes:
- mongodb_data:/data/db
restart: always
networks:
- cogstack-model-serve_cms
expose:
- 27017
healthcheck:
test: ["CMD", "mongo", "--eval", "\"db.adminCommand('ping')\""]
interval: 60s
timeout: 20s
retries: 3
opensearch:
image: opensearchproject/opensearch:2.4.0
container_name: cms_opensearch
environment:
- OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g
- bootstrap.memory_lock=true
- discovery.type=single-node
- action.auto_create_index=false
- plugins.security.ssl.http.enabled=false
- plugins.security.disabled=true
ulimits:
memlock:
hard: -1
soft: -1
volumes:
- os_data:/usr/share/opensearch/data
restart: always
networks:
- cogstack-model-serve_cms
expose:
- 9200
healthcheck:
test: ["CMD", "curl", "--write-out", "'HTTP %{http_code}'", "--fail", "--silent", ">", "/dev/null", "http://localhost:9200/"]
interval: 60s
timeout: 20s
retries: 3
graylog:
image: graylog/graylog:5.0
container_name: cms_graylog
depends_on:
opensearch:
condition: "service_healthy"
mongodb:
condition: "service_healthy"
entrypoint: "/usr/bin/tini -- wait-for-it opensearch:9200 -- /docker-entrypoint.sh"
restart: always
networks:
- cogstack-model-serve_cms
environment:
- GRAYLOG_NODE_ID_FILE=/usr/share/graylog/data/config/node-id
- GRAYLOG_PASSWORD_SECRET=${GRAYLOG_PASSWORD_SECRET}
- GRAYLOG_ROOT_PASSWORD_SHA2=${GRAYLOG_ROOT_PASSWORD_SHA2}
- GRAYLOG_HTTP_BIND_ADDRESS=0.0.0.0:9000
- GRAYLOG_HTTP_EXTERNAL_URI=http://localhost:9000/
- GRAYLOG_ELASTICSEARCH_HOSTS=http://opensearch:9200
- GRAYLOG_MONGODB_URI=mongodb://mongodb:27017/graylog
- GRAYLOG_RETENTION=90
expose:
- 9000
- 12201/tcp
- 12201/udp
volumes:
- "graylog_data:/usr/share/graylog/data/data"
- "graylog_journal:/usr/share/graylog/data/journal"
volumes:
mongodb_data:
driver: local
os_data:
driver: local
graylog_data:
driver: local
graylog_journal:
driver: local
networks:
cogstack-model-serve_cms:
external: true