-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
42 lines (38 loc) · 938 Bytes
/
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
version: "3.9"
services:
database:
container_name: classifieds_mysql_container
image: mysql:latest
restart: always
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: classifieds
MYSQL_USER: user
MYSQL_PASSWORD: password
volumes:
- mysql_database:/var/lib/mysql
rabbitmq:
container_name: classifieds_rabbitmq_container
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672"
elasticsearch:
container_name: classifieds_elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.0
volumes:
- esdata:/usr/share/elasticsearch/data
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
logging:
driver: none
ports:
- "9300:9300"
- "9200:9200"
volumes:
mysql_database:
esdata: