-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (69 loc) · 2.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
76 lines (69 loc) · 2.02 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
version: "3"
services:
gateway-api:
container_name: gateway-api
build:
context: ./gateway-api
dockerfile: .Dockerfile
environment:
TZ: "Europe/Moscow"
ExternalServicesOptions__WeatherServiceUrl: 'http://weather-api:80/'
ExternalServicesOptions__SalaryServiceUrl: 'http://salary-api:80/'
ExternalServicesOptions__AuthServiceUrl: 'http://auth-api:80/'
JwtConfig__Issuer: 'gateway-example-issuer'
JwtConfig__Audience: 'gateway-example-audience'
JwtConfig__Key: 'CakeIsALie111222333'
# 10 минут
JwtConfig__LifetimeSeconds: 600
healthcheck:
test: wget --no-verbose --tries=1 http://localhost/health-check -qO- || exit 1
interval: 30s
timeout: 5s
retries: 3
ports:
- '5000:80'
restart: unless-stopped
weather-api:
container_name: weather-api
build:
context: ./weather-api
dockerfile: .Dockerfile
environment:
TZ: "Europe/Moscow"
healthcheck:
test: wget --no-verbose --tries=1 http://localhost/health-check -qO- || exit 1
interval: 30s
timeout: 5s
retries: 3
restart: unless-stopped
auth-api:
container_name: auth-api
build:
context: ./auth-api
dockerfile: .Dockerfile
environment:
TZ: "Europe/Moscow"
JwtConfig__Issuer: 'gateway-example-issuer'
JwtConfig__Audience: 'gateway-example-audience'
JwtConfig__Key: 'CakeIsALie111222333'
# 10 минут
JwtConfig__LifetimeSeconds: 600
healthcheck:
test: wget --no-verbose --tries=1 http://localhost/health-check -qO- || exit 1
interval: 30s
timeout: 5s
retries: 3
restart: unless-stopped
salary-api:
container_name: salary-api
build:
context: ./salary-api
dockerfile: .Dockerfile
environment:
TZ: "Europe/Moscow"
healthcheck:
test: wget --no-verbose --tries=1 http://localhost/health-check -qO- || exit 1
interval: 30s
timeout: 5s
retries: 3
restart: unless-stopped