-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
108 lines (101 loc) · 2.22 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
services:
rabbitmq:
image: rabbitmq:3.13-management
hostname: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
networks:
- webapp
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 15s
timeout: 30s
retries: 3
redis:
image: redis:7.2.4
hostname: redis
ports:
- "6379:6379"
networks:
- webapp
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 5s
timeout: 3s
retries: 3
elasticsearch:
image: elasticsearch:8.13.0
hostname: elasticsearch
ports:
- "9200:9200"
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- node.name=elastic-node
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
interval: 15s
timeout: 30s
retries: 3
networks:
- webapp
kibana:
image: kibana:8.13.0
hostname: kibana
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
depends_on:
elasticsearch:
condition: service_healthy
networks:
- webapp
webapp:
image: marlapativ/plan-app-server:1.0.2
hostname: webapp
ports:
- "8080:8080"
- "8081:8081"
- "4000:4000"
environment:
- PORT=8080
- PORT_GRAPHQL=4000
- REDIS_HOST=redis
- RABBITMQ_URL=amqp://rabbitmq
- ELASTIC_SEARCH_URL=http://elasticsearch:9200
depends_on:
rabbitmq:
condition: service_healthy
redis:
condition: service_healthy
elasticsearch:
condition: service_healthy
networks:
- webapp
consumer:
image: marlapativ/plan-app-consumer:1.0.1
hostname: consumer
environment:
- RABBITMQ_URL=amqp://rabbitmq
- ELASTIC_SEARCH_URL=http://elasticsearch:9200
depends_on:
rabbitmq:
condition: service_healthy
elasticsearch:
condition: service_healthy
networks:
- webapp
volumes:
esdata:
driver: local
networks:
webapp:
driver: bridge