-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
103 lines (98 loc) · 2.5 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
version: '3'
services:
mysqldb:
image: mysql:5.7
container_name: mysqldb
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: catalog
rabbitmq:
image: 'rabbitmq:3.8.3-management'
container_name: rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
ports:
- "5672:5672"
- "15672:15672"
vault:
image: vault:1.4.0
container_name: vault
cap_add:
- IPC_LOCK
environment:
VAULT_DEV_ROOT_TOKEN_ID: 934f9eae-31ff-a8ef-e1ca-4bea9e07aa09
ports:
- 8200:8200
setup-vault:
image: vault:1.4.0
container_name: setup-vault
entrypoint: /bin/sh
volumes:
- './config:/config'
environment:
VAULT_ADDR: 'http://vault:8200'
CONFIG_DIR: '/config'
command: >
-c "
sleep 2;
/config/vault-init.sh;
"
depends_on:
- vault
config-server:
container_name: config-server
build: ./config-server
ports:
- "8888:8888"
- "18787:8787"
depends_on:
- rabbitmq
service-registry:
container_name: service-registry
build: ./service-registry
ports:
- "8761:8761"
- "28787:8787"
depends_on:
- config-server
hystrix-dashboard:
container_name: hystrix-dashboard
build: ./hystrix-dashboard
ports:
- "8788:8788"
- "38787:8787"
# catalog-service:
# container_name: catalog-service
# build: ./catalog-service
# ports:
# - "18181:8181"
# - "19797:8787"
# depends_on:
# - config-server
# - setup-vault
# - mysqldb
# entrypoint: /bin/sh
# command: >
# -c "
# while ! (nc -z config-server 8888 && nc -z vault 8200); do sleep 5; echo 'Waiting for vault and config-server services to start-up...'; done;
# java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8787,suspend=n -jar -Dspring.profiles.active=docker /app.jar
# "
# inventory-service:
# container_name: inventory-service
# build: ./inventory-service
# ports:
# - "18282:8282"
# - "29797:8787"
# depends_on:
# - config-server
# - setup-vault
# - mysqldb
# entrypoint: /bin/sh
# command: >
# -c "
# while ! (nc -z config-server 8888 && nc -z vault 8200); do sleep 5; echo 'Waiting for vault and config-server services to start-up...'; done;
# java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8787,suspend=n -jar -Dspring.profiles.active=docker /app.jar
# "