cyberchef stack
This commit is contained in:
parent
dd0a6dcd22
commit
29f29e2df1
3 changed files with 36 additions and 0 deletions
|
@ -11,3 +11,4 @@
|
|||
- {role: freshrss, tags: freshrss}
|
||||
- {role: hedgedoc, tags: hedgedoc}
|
||||
- {role: overleaf, tags: overleaf}
|
||||
- {role: cyberchef, tags: cyberchef}
|
||||
|
|
20
ansible/roles/cyberchef/docker-stack.yml.j2
Normal file
20
ansible/roles/cyberchef/docker-stack.yml.j2
Normal file
|
@ -0,0 +1,20 @@
|
|||
# vi: ft=yaml
|
||||
version: "3.7"
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
||||
|
||||
services:
|
||||
cyberchef:
|
||||
image: mpepping/cyberchef
|
||||
networks:
|
||||
- traefik
|
||||
deploy:
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.cyberchef.entrypoints=websecure
|
||||
- traefik.http.services.cyberchef.loadbalancer.server.port=8000
|
||||
- traefik.http.routers.cyberchef.rule=Host(`cyberchef.geokunis2.nl`)
|
||||
- traefik.http.routers.cyberchef.tls=true
|
||||
- traefik.http.routers.cyberchef.tls.certresolver=letsencrypt
|
15
ansible/roles/cyberchef/tasks/main.yml
Normal file
15
ansible/roles/cyberchef/tasks/main.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
- name: Create working directory
|
||||
file:
|
||||
path: /srv/cyberchef
|
||||
state: directory
|
||||
|
||||
- name: Copy Docker stack file
|
||||
template:
|
||||
src: "{{ role_path }}/docker-stack.yml.j2"
|
||||
dest: /srv/cyberchef/docker-stack.yml
|
||||
|
||||
- name: Deploy Docker stack
|
||||
docker_stack:
|
||||
name: cyberchef
|
||||
compose:
|
||||
- /srv/cyberchef/docker-stack.yml
|
Reference in a new issue