-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
183 lines (167 loc) · 4.14 KB
/
docker-compose.yml
File metadata and controls
183 lines (167 loc) · 4.14 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
services:
rabbitmq:
build: RabbitMq/
ports:
- "5672:5672"
- "5671:5671"
- "15672:15672"
volumes:
- rabbitMq:/var/lib/rabbitmq
envoygateway:
build: Envoy/
ports:
- "9902:9902"
- "10000:10000"
volumes:
- ./Envoy/envoy.yaml:/etc/envoy/envoy.yaml
imagevault.authenticationservice:
image: ${DOCKER_REGISTRY-}imagevaultauthenticationservice
build:
context: .
dockerfile: ImageVault.AuthenticationService/Dockerfile
ports:
- "2100:2100"
- "2101:2101"
volumes:
- ./certs:/https
env_file:
- "ImageVault.AuthenticationService/.env"
imagevault.userservice:
image: ${DOCKER_REGISTRY-}imagevaultuserservice
build:
context: .
dockerfile: ImageVault.UserService/Dockerfile
ports:
- "2103:2103"
- "2104:2104"
volumes:
- ./certs:/https
env_file:
- "ImageVault.UserService/.env"
imagevault.requestmetricsservice:
image: ${DOCKER_REGISTRY-}imagevaultrequestmetricsservice
build:
context: .
dockerfile: ImageVault.RequestMetricsService/Dockerfile
ports:
- "2105:2105"
- "2106:2106"
volumes:
- ./certs:/https
env_file:
- "ImageVault.RequestMetricsService/.env"
authenticationservice.db:
build: postgres/
container_name: authenticationservice.db
env_file:
- "postgres/token.env"
ports:
- "5431:5431"
volumes:
- tokenservice:/var/lib/postgresql/data
userservice.db:
build: postgres/
container_name: userservice.db
env_file:
- "postgres/userservice.env"
ports:
- "5433:5433"
volumes:
- userservice:/var/lib/postgresql/data
apikeyservice.db:
build: postgres/
container_name: apikeyservice.db
env_file:
- "postgres/apikeyservice.env"
ports:
- "5434:5434"
volumes:
- apikeyservice:/var/lib/postgresql/data
imageservice.db:
build: postgres/
container_name: imageservice.db
env_file:
- "postgres/imageservice.env"
ports:
- "5435:5435"
volumes:
- imageservice:/var/lib/postgresql/data
metricsservice.db:
build: postgres/
container_name: metricsservice.db
env_file:
- "postgres/metricsservice.env"
ports:
- "5436:5436"
volumes:
- metricsservice:/var/lib/postgresql/data
uploadservice.db:
build: postgres/
container_name: uploadservice.db
env_file:
- "postgres/uploadservice.env"
ports:
- "5437:5437"
volumes:
- uploadservice:/var/lib/postgresql/data
imagevault.apikeyservice:
image: ${DOCKER_REGISTRY-}imagevaultapikeyservice
build:
context: .
dockerfile: ImageVault.ApiKeyService/Dockerfile
ports :
- "2107:2107"
- "2108:2108"
env_file:
- "ImageVault.ApiKeyService/.env"
imagevault.uploadservice:
image: ${DOCKER_REGISTRY-}imagevaultuploadservice
build:
context: .
dockerfile: ImageVault.UploadService/Dockerfile
ports :
- "2109:2109"
- "2110:2110"
env_file:
- "ImageVault.UploadService/.env"
imagevault.imageservice:
image: ${DOCKER_REGISTRY-}imagevaultimageservice
build:
context: .
dockerfile: ImageVault.ImageService/Dockerfile
ports :
- "2111:2111"
- "2112:2112"
env_file:
- "ImageVault.ImageService/.env"
nginx:
build: nginx/
ports:
- "8080:80"
- "4443:443"
volumes:
- ./nginx/dist:/usr/share/nginx/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
# - ./certbot/conf:/etc/letsencrypt
# - ./certbot/www:/var/www/certbot
# certbot:
# image: certbot/certbot
# volumes:
# - ./certbot/conf:/etc/letsencrypt
# - ./certbot/www:/var/www/certbot
# entrypoint: "/bin/sh -c 'trap exit TERM; while :; do sleep 12h & wait $!; certbot renew; done'"
volumes:
rabbitMq:
external: true
tokenservice :
external: true
userservice:
external: true
apikeyservice:
external: true
imageservice:
external: true
metricsservice:
external: true
uploadservice:
external: true