-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (93 loc) · 2.31 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
90
91
92
93
94
95
96
97
98
99
100
101
102
# Copyright (c) 2022 Fraunhofer Institute for Software and Systems Engineering
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# Fraunhofer Institute for Software and Systems Engineering - initial API and implementation
#
version: "3.9" # optional since v1.27.0
networks:
edc_network:
driver: bridge
services:
edc:
build: .
container_name: edc
environment:
POSTGRES_HOST: postgresql
POSTGRES_PORT: 5432
POSTGRES_DATABASE: bootx
POSTGRES_USER: root
POSTGRES_PASSWORD: changeme
IDS_WEBHOOK_ADRESS: localhost
EDC_API_KEY: password
ports:
- 8181:8181
- 8182:8182
- 8183:8183
- 8282:8282
networks:
- edc_network
depends_on:
- postgresql
- elasticsearch
postgresql:
image: postgres
container_name: postgresql
restart: always
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: changeme
POSTGRES_DB: bootx
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- db:/var/lib/postgresql/data
networks:
- edc_network
ports:
- 5432:5432
logstash:
image: docker.elastic.co/logstash/logstash:8.4.3
container_name: logstash
restart: always
environment:
Test: test
networks:
- edc_network
volumes:
- ./logstash_config/pipeline/:/usr/share/logstash/pipeline/
- [YOUR AWS VAULT]: [targetLocation]
elasticsearch:
container_name: elastic
image: docker.elastic.co/elasticsearch/elasticsearch:8.4.2
environment:
- ES_JAVA_OPTS = "-Xms2048m -Xmx2048m"
- xpack.security.enabled=false
- "discovery.type=single-node"
- logger.level=WARN
networks:
- edc_network
ports:
- 9200:9200
volumes:
- esdata:/usr/share/elasticsearch/data:rw
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:8.4.2
environment:
- ELASTICSEARCH_HOSTS=http://elastic:9200
networks:
- edc_network
depends_on:
- elasticsearch
ports:
- 5601:5601
volumes:
db:
driver: local
esdata:
driver: local