-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (50 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
55 lines (50 loc) · 1.23 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
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"
environment:
- RABBITMQ_DEFAULT_VHOST=/
- RABBITMQ_FANOUT_EXCHANGE=fanoutExchange
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.10.4
container_name: elasticsearch-container
ports:
- 9200:9200
environment:
- discovery.type=single-node
- xpack.security.enabled=false
# searchservice:
# image: my_searchservice #mattan41/chatgut:v1.0
# container_name: searchService
# restart: on-failure
# depends_on:
# - rabbitMQ
# - elasticsearch
# ports:
# - "8009:8009"
volumes:
dbData: