Add Gokapi file sharing service (replaces PicoShare)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: make gokapi directories
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
loop:
|
||||
- /opt/stacks/gokapi
|
||||
|
||||
- name: Template out the compose file
|
||||
ansible.builtin.template:
|
||||
src: gokapi-compose.yml.j2
|
||||
dest: /opt/stacks/gokapi/compose.yml
|
||||
owner: root
|
||||
mode: 644
|
||||
|
||||
- name: deploy gokapi stack
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: /opt/stacks/gokapi
|
||||
files:
|
||||
- compose.yml
|
||||
@@ -37,6 +37,10 @@
|
||||
import_tasks: kanboard.yml
|
||||
tags: kanboard
|
||||
|
||||
- name: Install gokapi
|
||||
import_tasks: gokapi.yml
|
||||
tags: gokapi
|
||||
|
||||
- name: Install grocy
|
||||
import_tasks: grocy.yml
|
||||
tags: grocy
|
||||
@@ -119,6 +119,10 @@ opds.thesatelliteoflove.com {
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
gokapi.thesatelliteoflove.com {
|
||||
reverse_proxy gokapi:53842
|
||||
}
|
||||
|
||||
sync.thesatelliteoflove.com {
|
||||
reverse_proxy kosync:17200
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
services:
|
||||
gokapi:
|
||||
image: f0rc3/gokapi:latest
|
||||
container_name: gokapi
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
TZ: "UTC"
|
||||
volumes:
|
||||
- gokapi_data:/app/data
|
||||
- gokapi_config:/app/config
|
||||
labels:
|
||||
glance.name: Gokapi
|
||||
glance.icon: si:files
|
||||
glance.url: https://{{ subdomains.gokapi }}/
|
||||
glance.description: Lightweight file sharing
|
||||
glance.id: gokapi
|
||||
mag37.dockcheck.update: true
|
||||
volumes:
|
||||
gokapi_data:
|
||||
driver: local
|
||||
gokapi_config:
|
||||
driver: local
|
||||
networks:
|
||||
default:
|
||||
external: true
|
||||
name: "{{ docker.network_name }}"
|
||||
Reference in New Issue
Block a user