Implemented funkwhale draft

This commit is contained in:
Kevin Veen-Birkenbach 2022-12-05 17:43:21 +01:00
parent 35321ca258
commit c7e17bbb2b
8 changed files with 74 additions and 0 deletions

View File

@ -143,6 +143,14 @@
- role: docker-bigbluebutton - role: docker-bigbluebutton
vars: vars:
domain: bbb.{{top_domain}} domain: bbb.{{top_domain}}
- name: setup funkwhale hosts
hosts: funkwhale_hosts
become: true
roles:
- role: docker-funkwhale
vars:
domain: funkwhale.{{top_domain}}
http_port: 8012
- name: setup akaunting hosts - name: setup akaunting hosts
hosts: akaunting_hosts hosts: akaunting_hosts
become: true become: true

View File

@ -0,0 +1,4 @@
# role funkwhale
## further information
- https://docs.funkwhale.audio/installation/docker.html

View File

@ -0,0 +1,8 @@
---
- name: recreate funkwhale
command:
cmd: docker-compose -p funkwhale up -d --force-recreate
chdir: /home/administrator/docker-compose/funkwhale/
environment:
COMPOSE_HTTP_TIMEOUT: 600
DOCKER_CLIENT_TIMEOUT: 600

View File

@ -0,0 +1,2 @@
dependencies:
- native-docker-reverse-proxy

View File

@ -0,0 +1,25 @@
---
- name: recieve {{domain}} certificate
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{domain}}
- name: configure {{domain}}.conf
template: src=roles/native-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
notify: restart nginx
- name: "create {{docker_compose_path}}"
file:
path: "{{docker_compose_path}}"
state: directory
mode: 0755
- name: add docker-compose.yml
template: src=docker-compose.yml.j2 dest={{docker_compose_path}}docker-compose.yml
notify: recreate funkwhale
- name: add env
template:
src: env.j2
dest: "{{docker_compose_path}}env"
mode: '770'
force: yes
notify: recreate funkwhale

View File

@ -0,0 +1,13 @@
version: "3"
services:
funkwhale:
container_name: funkwhale
restart: unless-stopped
image: funkwhale/all-in-one:{{funkwhale_version}}
env_file: env
volumes:
- data:/data
ports:
- "127.0.0.1:{{http_port}}:{{http_port}}"
volumes:
data:

View File

@ -0,0 +1,12 @@
FUNKWHALE_HOSTNAME={{domain}}
FUNKWHALE_PROTOCOL=https
# This limits the upload size
NGINX_MAX_BODY_SIZE=100M
# Bind to localhost
FUNKWHALE_API_IP=127.0.0.1
# Container port you want to expose on the host
FUNKWHALE_API_PORT={{http_port}}
# Generate and store a secure secret key for your instance
DJANGO_SECRET_KEY={{funkwhale_django_secret}}
# Remove this if you expose the container directly on ports 80/443
NESTED_PROXY=1

View File

@ -0,0 +1,2 @@
docker_compose_path: "/home/administrator/docker-compose/funkwhale/"
client_max_body_size: "512M"