-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (54 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
62 lines (54 loc) · 1.26 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
version: '3.8'
services:
app:
image: ghcr.io/chatgut/micropostservice:main
container_name: postService
restart: on-failure
depends_on:
- mongodb
- rabbitMQ
environment:
ROCKET_DATABASES: '{postservice={url="mongodb://dbMongoDB:27017"}}'
ROCKET_RABBIT_HOST: "amqp://QueueRabbitMQ:5672"
ports:
- "8000:8000"
mongodb:
image: 'mongo:latest'
container_name: dbMongoDB
volumes:
- dbData:/var/lib/mongodb
ports:
- "27017:27017"
rabbitMQ:
image: 'rabbitmq:3-management'
container_name: QueueRabbitMQ
volumes:
- dbData:/var/lib/rabbitmq
ports:
- "15672:15672"
- "5672:5672"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.7.1
container_name: elasticsearch2
restart: on-failure
ports:
- "9200:9200"
volumes:
- elastic_data:/usr/share/elasticsearch/data/
environment:
- xpack.security.enabled=false
- discovery.type=single-node
search-service:
build:
context: .
dockerfile: Dockerfile
ports:
- "8006:8080"
depends_on:
- elasticsearch
- rabbitMQ
environment:
- SPRING_RABBITMQ_HOST=QueueRabbitMQ
volumes:
elastic_data:
dbData: