-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-servers.yml
101 lines (93 loc) · 2.06 KB
/
docker-compose-servers.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
version: '3.5'
include:
- docker-compose-db.yml
services:
#CONFIG SERVER CONTAINER
configServerApp:
build:
context: ./config-server
image: pdf_editor_config:latest
container_name: configServerApp
networks:
- server_net
#Discovery SERVER CONTAINER
discoveryServerApp:
build:
context: ./discovery-server
image: pdf_editor_discover:latest
container_name: discoveryServerApp
depends_on:
- configServerApp
networks:
- server_net
# Gateway SERVER CONTAINER
gatewayServerApp:
build:
context: ./gateway-server
image: pdf-editor-gateway:latest
container_name: gatewayServerApp
ports:
- "8072:8072"
depends_on:
- configServerApp
- discoveryServerApp
networks:
- server_net
- db_doc_net
# DOCUMENTS SERVER CONTAINER
documentsServerApp:
build:
context: ./document-service
image: pdf-editor-document:latest
container_name: documentsServerApp
depends_on:
- configServerApp
- discoveryServerApp
- mongodb
networks:
- server_net
- db_doc_net
# EMAIL SERVER CONTAINER
emailServerApp:
build:
context: ./email-service
image: pdf-editor-email:latest
container_name: emailServerApp
depends_on:
- configServerApp
- discoveryServerApp
networks:
- server_net
# USER SERVER CONTAINER
usersServerApp:
build:
context: ./user-service
image: pdf-editor-user:latest
container_name: usersServerApp
hostname: usersServerApp
depends_on:
- configServerApp
- discoveryServerApp
networks:
- server_net
#KEYCLOCK CONTAINER
keyClock:
image: quay.io/keycloak/keycloak:23.0.6
container_name: keyClock
hostname: keyClock
ports:
- "7080:8080"
networks:
- server_net
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
command:
- start-dev
networks:
server_net:
external: true
name: kafka_network
db_doc_net:
external: true
name: db_network