forked from steklopod/sharenow-coding-challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.infrastructure.yml
82 lines (73 loc) · 1.87 KB
/
docker-compose.infrastructure.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
version: "3.9"
networks:
sharenow:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.27.0.0/25
gateway: 172.27.0.1
volumes:
mongodb:
services:
cache-service:
image: redis:3.0.7-alpine
container_name: cache-service
hostname: cache-service
ports:
- "6379:6379"
networks:
sharenow:
ipv4_address: 172.27.0.3
documentdb-service:
image: mongo:4.4-bionic
container_name: documentdb-service
hostname: documentdb-service
volumes:
- /opt/sharenow-coding-challenge/mongodb/data/db:/data/db
ports:
- "27017:27017"
networks:
sharenow:
ipv4_address: 172.27.0.2
tracing-service:
image: openzipkin/zipkin
container_name: tracing-service
hostname: tracing-service
ports:
- "9411:9411"
networks:
sharenow:
ipv4_address: 172.27.0.5
car2godeveloper-service:
image: car2godeveloper/api-for-coding-challenge
container_name: car2godeveloper-service
hostname: car2godeveloper-service
ports:
- "3000:3000"
networks:
sharenow:
ipv4_address: 172.27.0.4
naming-service:
image: teenthofabud/sharenow-coding-challenge-naming-service:1.0.0-RELEASE
container_name: naming-service
hostname: naming-service
ports:
- "8761:8761"
networks:
sharenow:
ipv4_address: 172.27.0.6
configuration-service:
image: teenthofabud/sharenow-coding-challenge-configuration-service:1.0.0-RELEASE
container_name: configuration-service
hostname: configuration-service
ports:
- "8888:8888"
volumes:
- ./data/configuration-store:/opt/sharenow-coding-challenge/configuration-store
networks:
sharenow:
ipv4_address: 172.27.0.7
environment:
- PROJECT_BASE_DIR=/opt/sharenow-coding-challenge/configuration-store
restart: on-failure