-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.template.yml
118 lines (116 loc) · 3.88 KB
/
docker-compose.template.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
version: '3.5'
services:
ukrtrackingbotapiwrappernovaposhta:
image: my.registry/trackingbot/ukrtrackingbotapiwrappernovaposhta{tag}
build:
context: ./UkrTrackingBot.ApiWrapper.NovaPoshta
dockerfile: Dockerfile
environment:
- Exceptionless:ApiKey=exceptionlessapikey
- MongoDbLogging:MongoDb=database
- MongoDbLogging:MongoPassword=databasepassword
- MongoDbLogging:MongoDbAddress=dbaddress
- API_KEY novaposhtaapikey
ukrtrackingbotapiwrapperdeliveryauto:
image: my.registry/trackingbot/ukrtrackingbotapiwrapperdeliveryauto{tag}
build:
context: ./UkrTrackingBot.ApiWrapper.DeliveryAuto
dockerfile: Dockerfile
environment:
- Exceptionless:ApiKey=exceptionlessapikey
- MongoDbLogging:MongoDb=database
- MongoDbLogging:MongoPassword=databasepassword
- MongoDbLogging:MongoDbAddress=dbaddress
- API_KEY deliveryapikey
redismaster:
image: redis:3
redisslave:
image: redis:3
command: redis-server --slaveof redismaster 6379
links:
- redismaster
sentinel:
image: my.registry/trackingbot/sentinel{tag}
build: redis-sentinel
environment:
- SENTINEL_DOWN_AFTER=5000
- SENTINEL_FAILOVER=5000
links:
- redismaster
- redisslave
ukrtrackingbottelegramconsole:
image: my.registry/trackingbot/ukrtrackingbottelegramconsole{tag}
build:
context: ./UkrTrackingBot.Telegram.Console
dockerfile: Dockerfile
links:
- ukrtrackingbotapiwrappernovaposhta
- ukrtrackingbotapiwrapperdeliveryauto
- redismaster
environment:
- NP_ADDRESS=http://ukrtrackingbotapiwrappernovaposhta:80
- DEL_ADDRESS=http://ukrtrackingbotapiwrapperdeliveryauto:80
- REDIS_ADDRESS=redismaster:6379
- BOT_TOKEN=token
- Exceptionless:ApiKey=exceptionlessapikey
- MongoDbLogging:MongoDb=database
- MongoDbLogging:MongoPassword=databasepassword
- MongoDbLogging:MongoDbAddress=dbaddress
ukrtrackingbottelegramweb:
image: my.registry/trackingbot/ukrtrackingbottelegramweb{tag}
build:
context: ./UkrTrackingBot.Telegram.Web
dockerfile: Dockerfile
links:
- ukrtrackingbotapiwrappernovaposhta
- ukrtrackingbotapiwrapperdeliveryauto
- redismaster
environment:
- NP_ADDRESS=http://ukrtrackingbotapiwrappernovaposhta:80
- DEL_ADDRESS=http://ukrtrackingbotapiwrapperdeliveryauto:80
- REDIS_ADDRESS=redismaster:6379
- BOT_TOKEN=token
- Exceptionless:ApiKey=exceptionlessapikey
- MongoDbLogging:MongoDb=database
- MongoDbLogging:MongoPassword=databasepassword
- MongoDbLogging:MongoDbAddress=dbaddress
ukrtrackingbotidentityserver:
image: my.registry/trackingbot/ukrtrackingbotidentityserver{tag}
build:
context: ./UkrTrackingBot.IdentityServer
dockerfile: Dockerfile
environment:
- Exceptionless:ApiKey=exceptionlessapikey
- MongoDbLogging:MongoDb=database
- MongoDbLogging:MongoPassword=databasepassword
- MongoDbLogging:MongoDbAddress=dbaddress
- MVC_REDIRECT_URI=redirectUri
- MVC_POST_LOGOUT_REDIRECT_URI=logoutRedirectUri
- SIGN_CERT_PASSWORD=pwd
ukrtrackingbotweb:
image: my.registry/trackingbot/ukrtrackingbotweb{tag}
build:
context: ./UkrTrackingBot.Web
dockerfile: Dockerfile
environment:
- Exceptionless:ApiKey=exceptionlessapikey
- MongoDbLogging:MongoDb=database
- MongoDbLogging:MongoPassword=databasepassword
- MongoDbLogging:MongoDbAddress=dbaddress
- IDENTITYSERVER_AUTHORITYURL=authorityUrl
nginxproxy:
image: my.registry/trackingbot/nginxproxy{tag}
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- "80:80"
- "443:443"
volumes:
- type: volume
source: nginx_etc
target: /etc/letsencrypt
volume:
nocopy: true
volumes:
nginx_etc: