-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
125 lines (112 loc) · 2.28 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: '3.3'
services:
db:
image: mysql:8.0.21
restart: always
environment:
MYSQL_DATABASE: 'bsocial'
MYSQL_USER: 'root'
MYSQL_PASSWORD: 'root'
MYSQL_ROOT_PASSWORD: 'root'
ports:
- '3306:3306'
volumes:
- my-db:/var/lib/mysql
networks:
- net
adminer:
image: adminer
restart: always
ports:
- 9000:8080
networks:
- net
redis:
image: redis:6.0.6-alpine
ports:
- 6379:6379
networks:
- net
frontend:
build:
context: ./front
dockerfile: Dockerfile
ports:
- 8080:80
networks:
- net
backend:
build:
context: ./back
dockerfile: Dockerfile
ports:
- 8000:8000
networks:
- net
environment:
JWT_SECRET: 'CHANGE_SECRET'
JWT_TTL: 1440
ws-microservice:
build:
context: ./ws-microservice
dockerfile: Dockerfile
ports:
- 8002:8002
networks:
- net
es-microservice:
build:
context: ./kafka-es-microservice
dockerfile: Dockerfile
networks:
- net
zookeeper:
image: wurstmeister/zookeeper
ports:
- 2181:2181
networks:
- net
kafka:
image: wurstmeister/kafka
ports:
- 9092:9092
environment:
KAFKA_CREATE_TOPICS: "bsocial-posts:1:1,bsocial-comments:1:1,bsocial-registrations:1:1,bsocial-logins:1:1"
KAFKA_ADVERTISED_HOST_NAME: 192.168.1.7
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_BROKER_ID: 1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- net
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.8.0
volumes:
- my-es:/usr/share/elasticsearch/data
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- bootstrap.memory_lock=true
- discovery.type=single-node
logging:
driver: none
ports:
- 9300:9300
- 9200:9200
networks:
- net
kibana:
image: docker.elastic.co/kibana/kibana:7.8.0
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
# volumes:
# - ./kibana/config/:/opt/kibana/config/
ports:
- "5601:5601"
networks:
- net
networks:
net:
volumes:
my-db:
my-es: