-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
130 lines (122 loc) · 2.81 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
version: '3.3'
services:
database:
image: 'mysql:8'
cap_add:
- SYS_NICE
container_name: 'rest_api_mysql'
hostname: 'rest_api_mysql'
networks:
- internal
ports:
- '127.0.0.1:3306:3306'
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- mysql:/var/lib/mysql
environment:
MYSQL_EXPOSE_PORT: '3306'
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_USER: 'root'
MYSQL_ROOT_USER: 'root'
MYSQL_PASSWORD: 'root'
keycloak:
image: quay.io/keycloak/keycloak:16.1.0
container_name: 'node_rest_keycloak'
networks:
- internal
ports:
- '8080:8080'
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: adminPassword@1
demo-mail-server:
image: mailhog/mailhog
container_name: 'node_rest_mail'
networks:
- internal
logging:
driver: 'none'
ports:
- 1025:1025
- 8025:8025
multitenancy-rest-service:
build:
context: ./multitenancy-rest-service
dockerfile: Dockerfile
container_name: 'multitenancy-rest-service'
volumes:
- ./multitenancy-rest-service:/usr/src/app
networks:
- internal
depends_on:
- database
- tenant-config-service
- tenant-registration
- keycloak
ports:
- '5000:5000'
env_file:
- ./multitenancy-rest-service/config/.env
tenant-registration:
build: ./tenant-registration
container_name: 'tenant-registration'
volumes:
- ./tenant-registration:/usr/src/app
networks:
- internal
depends_on:
- database
- tenant-master-service
ports:
- '8875:8875'
env_file:
- ./config/.env
- ./tenant-registration/config/.env
tenant-master-service:
build: ./tenant-master-service
container_name: 'tenant-master-service'
volumes:
- ./tenant-master-service:/usr/src/app
networks:
- internal
depends_on:
- tenant-provisioning
- tenant-config-service
ports:
- '8847:8847'
env_file:
- ./tenant-master-service/config/.env
tenant-provisioning:
build: ./tenant-provisioning
container_name: 'tenant-provisioning'
volumes:
- ./tenant-provisioning:/usr/src/app
networks:
- internal
depends_on:
- database
ports:
- '8878:8878'
env_file:
- ./config/.env
- ./tenant-provisioning/config/.env
tenant-config-service:
build:
context: ./tenant-config-service
dockerfile: Dockerfile
container_name: 'tenant-config-service'
volumes:
- ./tenant-config-service:/usr/src/app
networks:
- internal
depends_on:
- database
ports:
- '8848:8848'
env_file:
- ./config/.env
- ./tenant-config-service/config/.env
networks:
internal:
volumes:
mysql: