added cyberchef.geokunis2.nl
This commit is contained in:
parent
3865e57f9a
commit
d81bcbaba2
5 changed files with 43 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
- {role: 'forgejo', tags: 'forgejo'}
|
||||
- {role: 'syncthing', tags: 'syncthing'}
|
||||
- {role: 'kms', tags: 'kms'}
|
||||
- {role: 'cyberchef', tags: 'cyberchef'}
|
||||
- {role: 'radicale', tags: 'radicale'}
|
||||
- {role: 'mastodon', tags: 'mastodon'}
|
||||
- {role: 'seafile', tags: 'seafile'}
|
||||
|
|
22
roles/cyberchef/files/docker-compose.yml
Normal file
22
roles/cyberchef/files/docker-compose.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
version: "3.7"
|
||||
|
||||
services:
|
||||
cyberchef-server:
|
||||
image: mpepping/cyberchef
|
||||
container_name: cyberchef
|
||||
restart: always
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.cyberchef.entrypoints=websecure
|
||||
- traefik.http.routers.cyberchef.rule=Host(`cyberchef.geokunis2.nl`)
|
||||
- traefik.http.routers.cyberchef.tls=true
|
||||
- traefik.http.routers.cyberchef.tls.certresolver=letsencrypt
|
||||
- traefik.http.services.cyberchef.loadbalancer.server.port=8000
|
||||
- traefik.http.routers.cyberchef.service=cyberchef
|
||||
- traefik.docker.network=traefik
|
||||
networks:
|
||||
- traefik
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
4
roles/cyberchef/meta/main.yml
Normal file
4
roles/cyberchef/meta/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
dependencies:
|
||||
- role: common
|
||||
- role: docker
|
||||
|
14
roles/cyberchef/tasks/main.yml
Normal file
14
roles/cyberchef/tasks/main.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
- name: Create app directory
|
||||
file:
|
||||
path: "{{ service_dir }}"
|
||||
state: directory
|
||||
- name: Copy Docker Compose script
|
||||
copy:
|
||||
src: "{{ role_path }}/files/docker-compose.yml"
|
||||
dest: "{{ service_dir }}/docker-compose.yml"
|
||||
- name: Start the Docker Compose
|
||||
docker_compose:
|
||||
project_src: "{{ service_dir }}"
|
||||
pull: true
|
||||
remove_orphans: true
|
||||
|
2
roles/cyberchef/vars/main.yml
Normal file
2
roles/cyberchef/vars/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
service_name: cyberchef
|
||||
service_dir: "{{ base_service_dir }}/{{ service_name }}"
|
Reference in a new issue