-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
61 lines (57 loc) · 1.61 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
version: "3.8"
name: irma_email_issuer
services:
# Irma issuer service
irmaserver:
image: ghcr.io/privacybydesign/irma:v0.14.2
working_dir: /irmago
ports:
- 8088:8088
expose:
- 8088
networks:
- irma-net
entrypoint:
- "irma"
- "server"
- "--no-auth=false"
- "--requestors={\"irma_email_issuer\":{\"auth_method\":\"publickey\",\"key_file\": \"/config/pk.pem\"} }"
- "--port=8088"
- "--jwt-privkey-file=/config/sk.pem"
- "--url=http://${IP}:8088"
volumes:
- ./src/main/resources/:/config/
# Mailhog service
mailhog:
image: mailhog/mailhog
networks:
# We use a localhost alias such that the test configuration also works for users who run it without Docker.
irma-net:
aliases:
- mailhog.localhost
ports:
- 1025:1025
- 8025:8025 # Port of the web interface
# Service that runs the SMS issuer webapp and api
irma_email_issuer:
platform: linux/x86_64
build:
context: .
dockerfile: Dockerfile
volumes:
# Make keys and config files available for Java app
- ./src/main/resources/:/config/
# Make config.js available for webapp
- ./webapp/config.example.js:/config/config.js:ro"
ports:
- 8080:8080
expose:
- 8080
networks:
- irma-net
# Docker Desktop for MacOS does not support exposing ports when using host networking. Therefore,
# we have to use bridge networking and expose the ports manually.
# https://github.com/docker/for-mac/issues/1031
networks:
irma-net:
driver: bridge