+ 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. # the target host.
--- ---
- hosts: leftcoastlab - hosts: leftcoastlab
become: yes
tasks: tasks:
- name: Install vsftpd package - name: Include Vars
apt: include_vars:
update_cache: yes dir: ../vars
name: vsftpd
- 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/ dest: /etc/nginx/sites-available/
loop: loop:
- ../files/git.lablad - ../files/git.lablad
- ../files/music.lablad
- ../files/files.lablad
- name: Enable Sites - name: Enable Sites
file: file:
@ -49,6 +51,8 @@
state: link state: link
loop: loop:
- git.lablad - git.lablad
- music.lablad
- files.lablad
notify: notify:
- restart-nginx - restart-nginx

View File

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