-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
106 lines (98 loc) · 2.43 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
version: "3.9"
services:
naming-server:
depends_on:
- config-server
container_name: naming-server-container
build:
context: ./NamingServer
dockerfile: Dockerfile
image: dipanjalmaitra/naming-server:latest
ports:
- "8761:8761"
networks:
- common-net
config-server:
container_name: config-server-container
build:
context: ./ConfigServer
dockerfile: Dockerfile
image: dipanjalmaitra/config-server:latest
ports:
- "8888:8888"
environment:
GIT_REPO_URI: https://github.com/dipanjal/git-config-repo
networks:
- common-net
api-gateway:
depends_on:
- naming-server
container_name: api-gateway-container
build:
context: ./ApiGateway
dockerfile: Dockerfile
image: dipanjalmaitra/api-gateway:latest
ports:
- "8765:8765"
networks:
- common-net
environment:
EUREKA_URI: http://naming-server:8761/eureka
currency-exchange:
depends_on:
- api-gateway
- naming-server
- config-server
container_name: currency-exchange-container
build:
context: ./CurrencyExchangeService
dockerfile: Dockerfile
image: dipanjalmaitra/currency-exchange:latest
ports:
- "8000:8000"
networks:
- common-net
environment:
ACTIVE_PROFILE: default
EUREKA_URI: http://naming-server:8761/eureka
CONFIG_SERVER_URL: http://config-server:8888
currency-conversion:
depends_on:
- api-gateway
- naming-server
- config-server
- currency-exchange
container_name: currency-conversion-container
build:
context: ./CurrencyConversionService
dockerfile: Dockerfile
image: dipanjalmaitra/currency-conversion:latest
ports:
- "8100:8100"
networks:
- common-net
environment:
EUREKA_URI: http://naming-server:8761/eureka
ACTIVE_PROFILE: default
geo-service:
depends_on:
- config-server
- naming-server
- api-gateway
container_name: geo-location-container
build:
context: ./GeoLocationService
dockerfile: Dockerfile
image: dipanjalmaitra/geo-service:latest
ports:
- "8200:8200"
networks:
- common-net
environment:
ACTIVE_PROFILE: default
EUREKA_URI: http://naming-server:8761/eureka
CONFIG_SERVER_URL: http://config-server:8888
restart: on-failure
networks:
common-net:
external: true