-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-stack-deploy.yml
More file actions
56 lines (54 loc) · 1.35 KB
/
docker-stack-deploy.yml
File metadata and controls
56 lines (54 loc) · 1.35 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
version: '3'
services:
#publisher service
producer:
image: amineben/producer:miner-$TAG
deploy:
update_config:
delay: 15s
restart_policy:
condition: on-failure
depends_on:
- neo4j
- rabbitmq
command: dockerize -wait http://rabbitmq:15672 -timeout 30s /dist/run-producer.sh --queue rabbitmq:5672
#consumer service
consumer:
image: amineben/consumer:miner-$TAG
deploy:
replicas: $REPLICAS
update_config:
delay: 30s
restart_policy:
condition: on-failure
depends_on:
- neo4j
- rabbitmq
command: dockerize -wait http://neo4j:7474 -wait http://rabbitmq:15672/#/queues/%2F/artifactsQueue -timeout 30s /dist/run-consumer.sh --db neo4j:7687 --queue rabbitmq:5672
#neo4j service
neo4j:
image: amineben/neo3j:miner-$TAG
volumes:
- "$NEO4J_VAR/data:/data"
#- "$NEO4J_VAR/logs:/logs"
ports:
- "7474:7474"
- "7687:7687"
env_file:
- neo4j.env
deploy:
placement:
constraints: [node.role == manager]
#rabbit mq service
rabbitmq:
image: amineben/rabbitmq:miner-$TAG
ports:
- "15672:15672"
- "5672:5672"
volumes:
- $RABBIT_VAR:/data/mnesia
environment:
RABBITMQ_NODENAME: node@rabbitmq
deploy:
placement:
constraints: [node.role == manager]