-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
43 lines (43 loc) · 1.08 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
version: "3"
services:
mongodb:
image: mongo:4.0
container_name: mongodb
ports:
- 27017:27017
restart: unless-stopped
healthcheck:
test: test $$(echo "rs.initiate({_id:\"rs0\",members:[{_id:0,host:\"localhost:27017\"}]}).ok || rs.status().ok" | mongo --port 27017 --quiet) -eq 1
interval: 10s
start_period: 30s
command: "mongod --bind_ip_all --replSet rs0"
redis:
image: redis
container_name: redis
ports:
- 6379:6379
restart: unless-stopped
cassandra:
image: cassandra:3
container_name: cassandra
ports:
- 9042:9042
environment:
- MAX_HEAP_SIZE=256M
- HEAP_NEWSIZE=128M
restart: always
healthcheck:
test: ["CMD", "cqlsh", "-u cassandra", "-p cassandra" ,"-e describe keyspaces"]
interval: 15s
timeout: 10s
retries: 10
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- 5672:5672
- 15672:15672
environment:
RABBITMQ_DEFAULT_USER: "root"
RABBITMQ_DEFAULT_PASS: "password"
restart: unless-stopped