-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.jwt.yml
49 lines (49 loc) · 1.33 KB
/
docker-compose.jwt.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
---
version: '3'
services:
proxy:
hostname: proxy
build:
context: .
dockerfile: Dockerfile.develop
command:
- proxy
- '--agent-server.listen-address=:4242'
- '--agent-server.tls.file.key=/certs/proxy-key.pem'
- '--agent-server.tls.file.cert=/certs/proxy.pem'
- '--http-proxy.listen-address=:3128'
- '--auth.type=jwt'
- '--auth.jwt.public-key=/jwt/auth-key-public.pem'
volumes:
- ./tests/cfssl/certs:/certs:ro
- ./tests/jwt:/jwt:ro
ports:
- "3128:3128/tcp"
agent-4711:
hostname: agent-4711
build:
context: .
dockerfile: Dockerfile.develop
command:
- agent
- '--agent-client.server-address=proxy:4242'
- '--agent-client.tls.file.root-ca=/certs/ca.pem'
- '--auth.type=jwt'
- '--auth.jwt.token=file:/jwt/auth-agent-jwt-4711.b64'
volumes:
- ./tests/cfssl/certs:/certs:ro
- ./tests/jwt:/jwt:ro
agent-4712:
hostname: agent-4712
build:
context: .
dockerfile: Dockerfile.develop
command:
- agent
- '--agent-client.server-address=proxy:4242'
- '--agent-client.tls.file.root-ca=/certs/ca.pem'
- '--auth.type=jwt'
- '--auth.jwt.token=file:/jwt/auth-agent-jwt-4712.b64'
volumes:
- ./tests/cfssl/certs:/certs:ro
- ./tests/jwt:/jwt:ro