-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev-service.yml
99 lines (98 loc) · 2.2 KB
/
docker-compose-dev-service.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
version: '3'
services:
#service-rss-reader
rss-reader:
restart: on-failure:5
build:
context: ../service-rss-reader
dockerfile: Dockerfile-compose
depends_on:
- rss-reader-mongo
command: mvn clean spring-boot:run -Dspring.profiles.active=compose
volumes:
- /tmp/m2:/root/.m2:rw
environment:
MONGODB_HOST: ${BRIDGE_NETWORK}
ports:
- 8762:8762
expose:
- 8762
networks:
- bridge-network
rss-reader-mongo:
restart: always
build:
context: ../mongodb-docker-template/service-rss-reader
dockerfile: Dockerfile-compose
ports:
- 33002:27017
expose:
- 33002
networks:
- bridge-network
# service-jobad-reader
jobad-reader:
restart: on-failure:5
build:
context: ../service-jobad-reader
dockerfile: Dockerfile-compose
depends_on:
- jodab-reader-mongo
command: mvn clean spring-boot:run -Dspring.profiles.active=compose
volumes:
- /tmp/m2:/root/.m2:rw
environment:
MONGODB_HOST: ${BRIDGE_NETWORK}
ports:
- 8765:8765
expose:
- 8765
networks:
- bridge-network
jodab-reader-mongo:
restart: always
build:
context: ../mongodb-docker-template/service-jobad-reader
dockerfile: Dockerfile-compose
ports:
- 37017:27017
expose:
- 37017
networks:
- bridge-network
# service-eureka-scheduler
eureka-scheduler:
restart: on-failure:5
build:
context: ../service-eureka-scheduler
dockerfile: Dockerfile-compose
depends_on:
- rss-reader
- jobad-reader
command: mvn clean spring-boot:run -Dspring.profiles.active=compose
volumes:
- /tmp/m2:/root/.m2:rw
ports:
- 8763:8763
expose:
- 8763
networks:
- bridge-network
# service-zuul-server
zuul-server:
restart: on-failure:5
build:
context: ../service-zuul-server
dockerfile: Dockerfile-compose
command: mvn clean spring-boot:run -Dspring.profiles.active=compose
volumes:
- /tmp/m2:/root/.m2:rw
ports:
- 8767:8766
expose:
- 8767
networks:
- bridge-network
networks:
bridge-network:
driver: bridge