+ Filebrowser docker based service
This commit is contained in:
parent
d84ae44ef8
commit
c2091d2886
@ -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}}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user