forked from digitalcredentials/dcc-admin-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
155 lines (150 loc) · 4.44 KB
/
compose.yaml
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
services:
nginx-proxy:
container_name: nginx-proxy
image: nginxproxy/nginx-proxy
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro
nginx-proxy-acme:
container_name: nginx-proxy-acme
image: nginxproxy/acme-companion
volumes:
- certs:/etc/nginx/certs:rw
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- DEFAULT_EMAIL=no-reply@surf.nl
- NGINX_DOCKER_GEN_CONTAINER=nginx-docker-gen
- NGINX_PROXY_CONTAINER=nginx-proxy
nginx-docker-gen:
image: nginxproxy/docker-gen
container_name: nginx-docker-gen
command: -notify-sighup nginx-proxy -watch 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
volumes:
- conf:/etc/nginx/conf.d
- ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
labels:
- "com.github.nginx-proxy.docker-gen"
network_mode: bridge
coordinator:
image: digitalcredentials/workflow-coordinator:0.1.0
environment:
- ENABLE_STATUS_SERVICE=false
- PUBLIC_EXCHANGE_HOST=https://dashboard.poc3.educredentials.eu/api
- TENANT_TOKEN_LEF_TEST=UNPROTECTED
- VIRTUAL_HOST=coordinator.poc3.educredentials.eu
- LETSENCRYPT_HOST=coordinator.poc3.educredentials.eu
- VIRTUAL_PORT=4005
# - PUBLIC_EXCHANGE_HOST=http://poc3.educredentials.eu:3000/api
# ports:
# - "4005:4005"
expose:
- 4005
signing:
image: digitalcredentials/signing-service:0.2.0
environment:
- TENANT_SEED_LEF_TEST=z1AeiPT496wWmo9BG2QYXeTusgFSZPNG3T9wNeTtjrQ3rCB
transactions:
image: digitalcredentials/transaction-service:0.1.0
# ports:
# - "4004:4004"
expose:
- 4004
payload:
build:
context: .
dockerfile: Dockerfile.local
container_name: "ad-payload"
depends_on:
- coordinator
- redis
- mongo
environment:
- COORDINATOR_URL=https://coordinator.poc3.educredentials.eu
- REDIS_URL=redis
- REDIS_PORT=6379
- MONGODB_URI=mongodb://root:example@mongo:27017/
- PAYLOAD_SECRET=TESTING
- TENANT_NAME=lef_test
- SMTP_HOST=mailhog
- SMTP_PORT=1025
- SMTP_USER=somename
- SMTP_PASS=somepass
- EMAIL_FROM=eduCredentials @ SURF based on Digital Credentials Consortium <someone@educredentials.eu>
- CLAIM_PAGE_URL=https://claim.poc3.educredentials.eu
- PAYLOAD_PUBLIC_SERVER_URL=https://dashboard.poc3.educredentials.eu
- VIRTUAL_HOST=dashboard.poc3.educredentials.eu
- LETSENCRYPT_HOST=dashboard.poc3.educredentials.eu
- VIRTUAL_PORT=3000
# ports:
# - "3000:3000"
expose:
- 3000
volumes:
- ./src:/home/node/app/src
claim-page:
build:
context: ../admin-dashboard-claim-page/
dockerfile: Dockerfile
image: educredentials/admin-dashboard-claim-page:0.1.0
# rebuild a new image with specifics for POC3
# image: digitalcredentials/admin-dashboard-claim-page:0.1.0
container_name: "ad-claim-page"
depends_on:
- payload
# ports:
# - "8080:8080"
expose:
- 8080
environment:
- PUBLIC_PAYLOAD_URL=https://dashboard.poc3.educredentials.eu/api
- VIRTUAL_HOST=claim.poc3.educredentials.eu
- LETSENCRYPT_HOST=claim.poc3.educredentials.eu
- VIRTUAL_PORT=8080
redis:
image: redis:alpine
container_name: ad-redis
environment:
- DISABLE_COMMANDS=FLUSHDB,FLUSHALL,CONFIG
- REDIS_ALLOW_REMOTE_CONNECTIONS=no
- ALLOW_EMPTY_PASSWORD=${ALLOW_EMPTY_PASSWORD:-yes}
expose:
- 6379
mongo:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
# added extra mailserver for testing
mailhog:
image: mailhog/mailhog
container_name: ad-mailhog
logging:
driver: 'none' # disable saving logs
# ports:
# - 1025:1025 # smtp server
# - 8025:8025 # web ui
expose:
- 1025
- 8025
environment:
- VIRTUAL_HOST=mail.poc3.educredentials.eu
- LETSENCRYPT_HOST=mail.poc3.educredentials.eu
- VIRTUAL_PORT=8025
volumes:
transactions:
conf:
vhost:
html:
certs:
acme: