From c2091d28867c76c6b1fcf454ac660dfda116d4a6 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 3 Apr 2022 22:21:33 -0700 Subject: [PATCH] + Filebrowser docker based service --- docker-host/setup/tasks/file-server.yml | 27 +++++++++++++++++++++---- docker-host/setup/tasks/nginx.yml | 4 ++++ docker-host/setup/vars/main.yml | 1 + 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/docker-host/setup/tasks/file-server.yml b/docker-host/setup/tasks/file-server.yml index 9fc8b45..bd836b7 100644 --- a/docker-host/setup/tasks/file-server.yml +++ b/docker-host/setup/tasks/file-server.yml @@ -2,8 +2,27 @@ # the target host. --- - hosts: leftcoastlab + become: yes tasks: - - name: Install vsftpd package - apt: - update_cache: yes - name: vsftpd + - name: Include Vars + include_vars: + dir: ../vars + + - name: Include FQDN + include_vars: + dir: ../defaults + + - name: Setup Filebrowser Container + community.docker.docker_container: + name: filestash + image: filebrowser/filebrowser + restart_policy: always + recreate: yes + user: "{{FILES_UID}}:{{FILES_GID}}" + volumes: + - "{{FILES_HOME}}:/srv" + ports: + - "{{FILEBROWSER_PORT}}:{{FILEBROWSER_PORT}}" + + + diff --git a/docker-host/setup/tasks/nginx.yml b/docker-host/setup/tasks/nginx.yml index a0d0238..d25f3a3 100644 --- a/docker-host/setup/tasks/nginx.yml +++ b/docker-host/setup/tasks/nginx.yml @@ -41,6 +41,8 @@ dest: /etc/nginx/sites-available/ loop: - ../files/git.lablad + - ../files/music.lablad + - ../files/files.lablad - name: Enable Sites file: @@ -49,6 +51,8 @@ state: link loop: - git.lablad + - music.lablad + - files.lablad notify: - restart-nginx diff --git a/docker-host/setup/vars/main.yml b/docker-host/setup/vars/main.yml index 8cefcd9..c4638e1 100644 --- a/docker-host/setup/vars/main.yml +++ b/docker-host/setup/vars/main.yml @@ -3,3 +3,4 @@ DEBIAN_CODENAME: sid GITEA_PUB_PORT: 3000 GITEA_SSH_PORT: 2222 +FILEBROWSER_PORT: 8080