forked from EKON-YAZILIM/ServicesDAO_VotingEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (75 loc) · 1.8 KB
/
docker-compose.yml
File metadata and controls
89 lines (75 loc) · 1.8 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '3.4'
volumes:
vote_datafiles:
reputation_datafiles:
services:
dao_rabbitmq:
image: rabbitmq:3-management
container_name: 'dao_rabbitmq'
environment:
RABBITMQ_DEFAULT_USER: "daorabbit"
RABBITMQ_DEFAULT_PASS: "dao2021*"
ports:
- 5673:5673
- 5672:5672
- 15672:15672
volumes:
- ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
- ~/.docker-conf/rabbitmq/log/:/var/lib/log
healthcheck:
test: rabbitmq-diagnostics -q status
interval: 10s
timeout: 30s
retries: 15
networks:
- daonetwork
dao_votedb:
image: mysql:5.7
platform: linux/x86_64
volumes:
- vote_datafiles:/var/lib/mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=secred
- MYSQL_DATABASE=daovotedb
networks:
- daonetwork
dao_reputationdb:
image: mysql:5.7
platform: linux/x86_64
volumes:
- reputation_datafiles:/var/lib/mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=secred
- MYSQL_DATABASE=daoreputationdb
networks:
- daonetwork
dao_votingengine:
image: ${DOCKER_REGISTRY-}daovotingengine
platform: linux/x86_64
build:
context: .
dockerfile: DAO_VotingEngine/Dockerfile
depends_on:
dao_rabbitmq:
condition: service_healthy
restart: always
networks:
- daonetwork
dao_reputationservice:
image: ${DOCKER_REGISTRY-}daoreputationservice
platform: linux/x86_64
build:
context: .
dockerfile: DAO_ReputationService/Dockerfile
depends_on:
dao_rabbitmq:
condition: service_healthy
restart: always
networks:
- daonetwork
networks:
daonetwork:
name: daonetwork
driver: bridge