mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Added funkwhale draft and set variablesfor db ports
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
services:
|
||||
|
||||
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
||||
|
||||
{% include 'templates/docker/services/redis.yml.j2' %}
|
||||
|
||||
celeryworker:
|
||||
# Celery workers handle background tasks (such file imports or federation
|
||||
# messaging). The more processes a worker gets, the more tasks
|
||||
# can be processed in parallel. However, more processes also means
|
||||
# a bigger memory footprint.
|
||||
# By default, a worker will span a number of process equal to your number
|
||||
# of CPUs. You can adjust this, by explicitly setting the --concurrency
|
||||
# flag:
|
||||
# celery -A funkwhale_api.taskapp worker -l INFO --concurrency=4
|
||||
restart: {{docker_restart_policy}}
|
||||
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
|
||||
env_file: .env
|
||||
@@ -11,10 +21,10 @@ services:
|
||||
- C_FORCE_ROOT=true
|
||||
volumes:
|
||||
- "data:${MEDIA_ROOT}"
|
||||
- "music:${MUSIC_DIRECTORY_PATH}:ro"
|
||||
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
||||
{% include 'templates/docker/container/networks.yml.j2' %}
|
||||
|
||||
|
||||
celerybeat:
|
||||
restart: {{docker_restart_policy}}
|
||||
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
|
||||
@@ -26,11 +36,11 @@ services:
|
||||
api:
|
||||
restart: {{docker_restart_policy}}
|
||||
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
|
||||
depends_on:
|
||||
env_file: .env
|
||||
volumes:
|
||||
- "music:${MUSIC_DIRECTORY_PATH}:ro"
|
||||
- "data:${MEDIA_ROOT}"
|
||||
#- "${STATIC_ROOT}:${STATIC_ROOT}"
|
||||
- "static_root:${STATIC_ROOT}"
|
||||
ports:
|
||||
- "5000"
|
||||
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
||||
@@ -53,9 +63,22 @@ services:
|
||||
# override those variables in your .env file if needed
|
||||
- "${FUNKWHALE_API_IP}:${FUNKWHALE_API_PORT}:80"
|
||||
{% include 'templates/docker/container/networks.yml.j2' %}
|
||||
|
||||
typesense:
|
||||
restart: {{docker_restart_policy}}
|
||||
env_file:
|
||||
- .env
|
||||
image: typesense/typesense:0.24.0
|
||||
volumes:
|
||||
- ./typesense/data:/data
|
||||
command: --data-dir /data --enable-cors
|
||||
profiles:
|
||||
- typesense
|
||||
|
||||
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
||||
data:
|
||||
static_root:
|
||||
redis:
|
||||
music:
|
||||
|
||||
{% include 'templates/docker/compose/networks.yml.j2' %}
|
@@ -16,6 +16,7 @@
|
||||
#
|
||||
# Docker only
|
||||
# -----------
|
||||
MUSIC_DIRECTORY_PATH=/music
|
||||
|
||||
FUNKWHALE_VERSION={{funkwhale_version}}
|
||||
|
||||
@@ -52,14 +53,14 @@ LOGLEVEL=error
|
||||
# (returns `noreply%40youremail.host`)
|
||||
# EMAIL_CONFIG=smtp://user:password@youremail.host:25
|
||||
# EMAIL_CONFIG=smtp+ssl://user:password@youremail.host:465
|
||||
# EMAIL_CONFIG=smtp+tls://user:password@youremail.host:{{system_email_smtp_port}}
|
||||
EMAIL_CONFIG=smtp+tls://{{system_email_local}}:{{system_email_password}}@{{system_email_host}}:{{system_email_smtp_port}}
|
||||
|
||||
# Make e-mail verification mandatory before using the service
|
||||
# Doesn't apply to admins.
|
||||
# ACCOUNT_EMAIL_VERIFICATION_ENFORCE=false
|
||||
|
||||
# The e-mail address to use to send system e-mails.
|
||||
# DEFAULT_FROM_EMAIL=noreply@yourdomain
|
||||
DEFAULT_FROM_EMAIL={{system_email_from}}
|
||||
|
||||
# Depending on the reverse proxy used in front of your funkwhale instance,
|
||||
# the API will use different kind of headers to serve audio files
|
||||
@@ -109,4 +110,6 @@ DJANGO_SECRET_KEY={{funkwhale_django_secret}}
|
||||
FUNKWHALE_FRONTEND_PATH=/srv/funkwhale/front/dist
|
||||
|
||||
# Nginx related configuration
|
||||
NGINX_MAX_BODY_SIZE=100M
|
||||
NGINX_MAX_BODY_SIZE=100M
|
||||
|
||||
DATABASE_URL = postgresql://{{database_username}}:{{database_password}}@{{database_host}}:{{database_port}}/{{ database_name }}
|
Reference in New Issue
Block a user