-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
86 lines (75 loc) · 1.99 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
version: '3.7'
services:
caddy:
image: caddy
ports:
- "443:443"
- "4444:4444"
- "3443:3443"
- "10000:10000"
volumes:
volumes:
- ./conf/Caddyfile:/Caddyfile
- ./conf/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt
- ./conf/cert.crt:/cert.crt
- ./conf/cert.key:/cert.key
command:
caddy run --config /Caddyfile
step-ca:
image: smallstep/step-ca
ports:
- "443"
volumes:
- ./step-ca:/home/step
- ./conf/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt
- ./conf:/conf
step-ca-host:
image: smallstep/step-ca
volumes:
- ./conf/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt
- ./conf:/conf
extra_hosts:
# - hydra:127.0.0.1
- caddy:127.0.0.1
network_mode: host
hydra:
image: oryd/hydra:v1.10.6-sqlite
command:
serve -c /etc/ory/hydra.yaml all
ports:
- "4444"
- "4445"
volumes:
- ./conf/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt
- type: volume
source: hydra-sqlite
target: /var/lib/sqlite
- ./conf/hydra.yaml:/etc/ory/hydra.yaml
- ./conf/cert.crt:/cert.crt
- ./conf/cert.key:/cert.key
environment:
- HYDRA_URL=https://hydra:4445
- DSN=sqlite:///var/lib/sqlite/db.sqlite?_fk=true
restart: unless-stopped
consent:
environment:
- HYDRA_ADMIN_URL=https://hydra:4445
- NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
- CONFORMITY_FAKE_CLAIMS=1
image: oryd/hydra-login-consent-node:v1.10.6
restart: unless-stopped
ports:
- "3000"
volumes:
- ./conf/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt
curl:
image: curlimages/curl
volumes:
- ./conf/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt
curl-host:
image: curlimages/curl
volumes:
- ./conf/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt
network_mode: host
volumes:
hydra-sqlite: