-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
112 lines (102 loc) · 3.53 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
version: '3.4'
# Define GPP_EXTERNAL_DNS_NAME_OR_IP in the .env file (e.g. localhost)
services:
core.api:
image: gpp/core:${TAG:-latest}
build:
context: .
dockerfile: src/Services/Core/GlobalPollenProject.App/Dockerfile
links:
- "core.readmodel:coreredis"
- "core.eventstore:coreeventstore"
depends_on:
- core.readmodel
- core.eventstore
environment:
- imagestore__azureconnectionstring=${IMAGESTORE_AZURE_CONN_STR}
- imagestore__baseurl=${IMAGESTORE_BASEURL}
- imagestore__container=${IMAGESTORE_CONTAINER}
- imagestore__cachecontainer=${IMAGESTORE_CONTAINER_CACHE}
- RedisHostName=coreredis
- eventstore__eventstoreip=coreeventstore
- eventstore__eventstoreuser=${EVENTSTORE_USER}
- eventstore__eventstorepassword=${EVENTSTORE_PASSWORD}
- IdentityUrl=http://identity.api
identity.api:
image: ${REGISTRY:-gpp}/identity.api:${PLATFORM:-linux}-${TAG:-latest}
build:
context: .
dockerfile: src/Services/Identity/GlobalPollenProject.Identity/Dockerfile
environment:
- Authentication__Facebook__AppId=${FACEBOOK_ID}
- Authentication__Facebook__AppSecret=${FACEBOOK_SECRET}
- Authentication__Twitter__ConsumerKey=${TWITTER_KEY}
- Authentication__Twitter__ConsumerSecret=${TWITTER_SECRET}
- ConnectionStrings__UserConnection=Server=identitydb,1433;Database=${USER_SQL_DB};User=${USER_SQL_USER};Password=${USER_SQL_PASSWORD}
- EmailFromName=${EMAIL_FROM_NAME}
- EmailFromAddress=${EMAIL_FROM_ADDR}
- SendGridKey=${SENDGRID_KEY}
- WebsiteUrl=http://web.ui
- UserSettings__UserEmail=${USER_EMAIL}
- UserSettings__UserPassword=${USER_PASSWORD}
- TokenLifetimeMinutes=120
- PermanentTokenLifetimeDays=365
- ClientSecretMvc=${WEB_MVC_CLIENT_SECRET}
- LabWebsiteUrl=http://localhost:5000
- ClientSecretLabBolero=${LAB_BOLERO_CLIENT_SECRET}
- SessionCookieLifetimeMinutes=${COOKIE_LIFETIME_MINS}
# Routes access to internal APIs from web apps
webapigw:
image: gpp/webapigw:${TAG:-latest}
build:
context: .
dockerfile: src/Gateways/GlobalPollenProject.Gateway/Dockerfile
depends_on:
- core.api
- identity.api
environment:
- IdentityUrl=http://identity.api
web.ui:
image: gpp/webmvc:${TAG:-latest}
build:
context: .
dockerfile: src/Web/WebUI/GlobalPollenProject.Web/Dockerfile
depends_on:
- webapigw
environment:
- IdentityUrl=http://identity.api
- CoreUrl=http://webapigw
- CallBackUrl=http://0.0.0.0:80
- MapboxToken=${MAPBOX_TOKEN}
- GoogleApiKey=${GOOGLE_KEY}
- AuthSecret=${WEB_MVC_CLIENT_SECRET}
- SessionCookieLifetimeMinutes=${COOKIE_LIFETIME_MINS}
web.api:
image: gpp/webapi:${TAG:-latest}
build:
context: .
dockerfile: src/Web/WebApi/GlobalPollenProject.Web.API/Dockerfile
depends_on:
- webapigw
environment:
- IdentityUrl=http://identity.api
- CoreUrl=http://webapigw
# web.lab:
# image: gpp/lab:${TAG:-latest}
# build:
# context: .
# dockerfile: src/Web/Lab/GlobalPollenProject.Lab.Server/Dockerfile
# environment:
# - IdentityUrl= http://identity.api
# - CoreUrl=http://webapigw
# - CallBackUrl=http://0.0.0.0:80
core.readmodel:
image: redis:6.0-alpine
command: redis-server --appendonly yes
ports:
- "6379:6379"
core.eventstore:
image: eventstore/eventstore:release-5.0.8
ports:
- "2113:2113"
- "1113:1113"