mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 20:51:07 +01:00
Implemented funkwhale draft
This commit is contained in:
parent
75ecb22c84
commit
03e3eec6a5
@ -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
|
||||||
|
4
roles/docker-funkwhale/README.md
Normal file
4
roles/docker-funkwhale/README.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# role funkwhale
|
||||||
|
|
||||||
|
## further information
|
||||||
|
- https://docs.funkwhale.audio/installation/docker.html
|
8
roles/docker-funkwhale/handlers/main.yml
Normal file
8
roles/docker-funkwhale/handlers/main.yml
Normal 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
|
2
roles/docker-funkwhale/meta/main.yml
Normal file
2
roles/docker-funkwhale/meta/main.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
dependencies:
|
||||||
|
- native-docker-reverse-proxy
|
25
roles/docker-funkwhale/tasks/main.yml
Normal file
25
roles/docker-funkwhale/tasks/main.yml
Normal 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
|
13
roles/docker-funkwhale/templates/docker-compose.yml.j2
Normal file
13
roles/docker-funkwhale/templates/docker-compose.yml.j2
Normal 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:
|
12
roles/docker-funkwhale/templates/env.j2
Normal file
12
roles/docker-funkwhale/templates/env.j2
Normal 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
|
2
roles/docker-funkwhale/vars/main.yml
Normal file
2
roles/docker-funkwhale/vars/main.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
docker_compose_path: "/home/administrator/docker-compose/funkwhale/"
|
||||||
|
client_max_body_size: "512M"
|
Loading…
Reference in New Issue
Block a user