-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
115 lines (115 loc) · 2.86 KB
/
docker-compose.yml
File metadata and controls
115 lines (115 loc) · 2.86 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
version: '3.3'
services:
discovery:
build:
context: discovery
dockerfile: Dockerfile
image: discovery:latest
expose:
- 8761
ports:
- 8761:8761
environment:
- server.port=8761
networks:
- backend
logging:
driver: json-file
restart: on-failure
config-server:
build:
context: configserver
dockerfile: Dockerfile
image: config-server:latest
environment:
- eureka.client.service-url.default-zone=http://discovery:8761/eureka
- server.port=8787
entrypoint: java -jar /app.jar
expose:
- 8787
networks:
- backend
depends_on:
- discovery
logging:
driver: json-file
restart: on-failure
proxy:
build:
context: proxy
dockerfile: Dockerfile
image: proxy:latest
environment:
- eureka.client.service-url.default-zone=http://discovery:8761/eureka
entrypoint: java -jar /app.jar
expose:
- 8049
ports:
- 8049:8049
networks:
- backend
- frontend
depends_on:
- discovery
- config-server
logging:
driver: json-file
restart: on-failure
ocrservice:
build:
context: ocrservice
dockerfile: Dockerfile
image: ocrservice:latest
environment:
- eureka.client.service-url.default-zone=http://discovery:8761/eureka
entrypoint: java -jar /app.jar
expose:
- 8090
networks:
- backend
- frontend
depends_on:
- discovery
- config-server
logging:
driver: json-file
restart: on-failure
database-server:
image: mysql:8
expose:
- 33060
networks:
- backend
- database
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=test_app
restart: on-failure
oauthserver:
build:
context: oauthserver
dockerfile: Dockerfile
image: oauthserver:latest
environment:
- eureka.client.service-url.default-zone=http://discovery:8761/eureka
- spring.datasouce.url=jdbc:mysql://database-server:33060/test_app
entrypoint: java -jar /app.jar
expose:
- 9010
networks:
- backend
- database
- frontend
depends_on:
- discovery
- config-server
logging:
driver: json-file
restart: on-failure
networks:
frontend:
driver: bridge
backend:
driver: bridge
database:
driver: bridge