+ Filebrowser docker based service

This commit is contained in:
shockrah 2022-04-03 22:21:33 -07:00
parent d84ae44ef8
commit c2091d2886
3 changed files with 28 additions and 4 deletions

View File

@ -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}}"

View File

@ -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

View File

@ -3,3 +3,4 @@
DEBIAN_CODENAME: sid
GITEA_PUB_PORT: 3000
GITEA_SSH_PORT: 2222
FILEBROWSER_PORT: 8080