-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
executable file
·80 lines (74 loc) · 2.4 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
services:
elevate-1:
image: "3goats/elevate:buildx-latest"
#image: "3goats/elevate"
command: add --api-key ${TLSPC_API_KEY} -f /config/general-config.yaml --force -p "Firefly Playground" -t "Firefly Playground"
volumes:
- ./config:/config
profiles:
- control-plane
elevate-2:
image: "3goats/elevate:buildx-latest"
#image: "3goats/elevate"
command: remove --api-key ${TLSPC_API_KEY} -f /config/general-config.yaml --force -p "Firefly Playground" -t "Firefly Playground"
volumes:
- ./config:/config
profiles:
- remove-control-plane
jwt-this.example:
image: "tr1ck3r/jwt-this:latest"
ports:
- "8001:8000"
command: --config-name "Firefly Playground" --policy-names "Firefly Playground"
profiles:
- firefly
- jwtthis
networks:
- firefly
firefly.venafi.example:
depends_on:
jwt-this.example:
condition: service_started
image: "registry.venafi.cloud/public/venafi-images/firefly:latest"
privileged: true
ports:
- "8289:8281"
command: run -c /etc/firefly/config.yaml
volumes:
- ${PWD}/config:/etc/firefly:rw
cap_add:
- IPC_LOCK
environment:
- ACCEPT_TERMS=Y
profiles:
- firefly
networks:
- firefly
nginx:
image: nginx:latest
profiles:
- nginx
ports:
- "443:443"
# Creates a temporary file system for VCert to write the private key and certificate to
tmpfs: /certs
volumes:
# Adds an HTML demo page
- ${PWD}/nginx-conf/html:/usr/share/nginx/html:ro
# Adds a tools directory that makes Venafi VCert avaialbile to the stabdard NGINX container
- ${PWD}/tools:/tmp:ro
# Adds a shell script that calls VCert to get certificate from Firefly during the NGINX initialization
- ${PWD}/nginx-conf/entrypoint/getcert.sh:/docker-entrypoint.d/getcert.sh
# Adds a default NGINX configuration that tells NGINX to use the private key and certificate located in the /certs directory
- ${PWD}/nginx-conf/default.conf:/etc/nginx/conf.d/default.conf
- ${PWD}/nginx-conf/nginx.conf:/etc/nginx/nginx.conf
#- ${PWD}/nginx-conf/logging.js:/etc/nginx/conf.d/logging.js
networks:
- firefly
environment:
- token=${VTOKEN}
- vcert=/tmp/vcert-amd64
networks:
firefly:
name: firefly
external: false