-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
114 lines (105 loc) · 2.27 KB
/
docker-compose.yaml
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
103
104
105
106
107
108
109
110
111
112
113
114
version: "3.8"
services:
db:
build:
context: ./ecomm-db
dockerfile: Dockerfile
ports:
- "5432:5432"
volumes:
- /Users/amolsingh/projects/ecomm/BE/ecomm-db/postgres-data:/var/lib/postgresql/data
- /Users/amolsingh/projects/ecomm/BE/ecomm-db/ecomm.sql:/docker-entrypoint-initdb.d/ecomm.sql
env_file:
- .env
gateway:
depends_on:
- db
build:
context: ./ecomm-gateway
dockerfile: Dockerfile.dev
ports:
- "8091:8091"
env_file:
- .env
user:
build:
context: ./ecomm-web
dockerfile: Dockerfile.dev
ports:
- "8080:8080"
env_file:
- .env
depends_on:
- db
cart:
build:
context: ./ecomm-cart
dockerfile: Dockerfile.dev
ports:
- "8082:8082"
env_file:
- .env
depends_on:
- db
product:
build:
context: ./ecomm-product
dockerfile: Dockerfile.dev
ports:
- "8081:8081"
env_file:
- .env
depends_on:
- db
order:
build:
context: ./ecomm-order
dockerfile: Dockerfile.dev
ports:
- "8083:8083"
env_file:
- .env
depends_on:
- db
elasticsearch:
image: elasticsearch:8.11.1
container_name: es-container
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
environment:
[
"ELASTIC_USERNAME=elastic",
"ELASTIC_PASSWORD=DkIedPPSCb",
"ES_JAVA_OPTS=-Xms512m -Xmx512m",
"CLI_JAVA_OPTS=-Xms2g -Xmx2g",
"bootstrap.memory_lock=true",
"discovery.type=single-node",
"xpack.security.enabled=true",
"xpack.security.enrollment.enabled=false",
]
logstash:
image: logstash:8.11.1
volumes:
# - ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
- ./logstash/conf:/usr/share/logstash/pipeline:ro
# - /var/log/GDPR/myapplication:/var/log/GDPR/myapplication:ro
ports:
- "5001:5001"
environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
ELASTICSEARCH_HOSTS: http://es-container:9200
networks:
- elk
depends_on:
- elasticsearch
links:
- elasticsearch
networks:
elk:
driver: bridge
volumes:
esdata:
driver: local