-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (47 loc) · 1.23 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
version: '3'
services:
jwt-service:
build: .
container_name: jwt-service
environment:
- VIRTUAL_HOST=yourdomain.com
- VIRTUAL_PORT=8080
- LETSENCRYPT_HOST=yourdomain.com
- LETSENCRYPT_EMAIL=youremail@example.com
- JWT_ISSUER=yourdomain.com
- JWT_SUBJECT=host/workload/id
- JWT_AUDIENCE=example.secretsmgr.cyberark.cloud
- JWT_TTL=5
- JWKS_KEY_TTL=6
networks:
- webnet
nginx-proxy:
image: jwilder/nginx-proxy:alpine
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./certs:/etc/nginx/certs
- ./vhost.d:/etc/nginx/vhost.d
- ./html:/usr/share/nginx/html
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy"
networks:
- webnet
nginx-proxy-letsencrypt:
image: nginxproxy/acme-companion
container_name: nginx-proxy-letsencrypt
depends_on:
- nginx-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./certs:/etc/nginx/certs
- ./vhost.d:/etc/nginx/vhost.d
- ./html:/usr/share/nginx/html
- ./acme:/etc/acme.sh
networks:
- webnet
networks:
webnet: