-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
100 lines (85 loc) · 2.47 KB
/
docker-compose.yml
File metadata and controls
100 lines (85 loc) · 2.47 KB
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
100
version: 3
services:
postgresql-db:
image: postgres:12-alpine
container_name:
restart: always
volumes:
- ./scripts/sql:/docker-entrypoint-initdb.d
- ./scripts/postgresql:/etc/mysql/conf.d
environment:
- POSTGRESQL_USER=${DB_USER}
- POSTGRESQL_PASSWORD=${DB_PASS}
- POSTGRESQL_DATABASE=${DB_NAME}
ports:
- ${DB_PORT}:5432
ulimits:
nofile:
soft: 65536
hard: 65536
networks:
default:
version: '3.1'
services:
goacs-db:
image: mariadb:10.4
container_name: goacs-db
restart: always
volumes:
- goacs-database-file:/var/lib/mysql
- ./contrib/database:/docker-entrypoint-initdb.d
- ./contrib/conf:/etc/mysql/conf.d
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
ports:
- ${MYSQL_PORT}:3306
ulimits:
nofile:
soft: 65536
hard: 65536
# MongoDB: https://hub.docker.com/_/mongo/
mongo:
image: mongo:3
# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/6.x/docker.html
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.10
environment:
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
# Graylog: https://hub.docker.com/r/graylog/graylog/
graylog:
image: graylog/graylog:3.3
environment:
# CHANGE ME (must be at least 16 characters)!
- GRAYLOG_PASSWORD_SECRET=somepasswordpepper4232342
# Password: admin
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
- GRAYLOG_HTTP_EXTERNAL_URI=http://api.mms.test:9000/
depends_on:
- mongo
- elasticsearch
ports:
# Graylog web interface and REST API
- 9000:9000
# Syslog TCP
- 1514:1514
# Syslog UDP
- 1514:1514/udp
# GELF TCP
- 12201:12201
# GELF UDP
- 12201:12201/udp
networks:
default:
volumes:
goacs-database-file:
driver: local