{"id":1290,"date":"2025-12-14T13:15:05","date_gmt":"2025-12-14T12:15:05","guid":{"rendered":"https:\/\/www.homeserver.lu\/?p=1290"},"modified":"2025-12-14T13:15:05","modified_gmt":"2025-12-14T12:15:05","slug":"funkwhale-installation","status":"publish","type":"post","link":"https:\/\/www.homeserver.lu\/?p=1290","title":{"rendered":"Funkwhale: installation"},"content":{"rendered":"\n<p>Funkwhale is a very nice audio hosting platform. We&#8217;ll install it using docker-compose in Portainer.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>services:\n  funkwhale:\n    image: funkwhale\/all-in-one:latest\n    container_name: funkwhale2 #I have 2 instances of funkwhale on this docker host\n    restart: unless-stopped\n    depends_on:\n      - postgres\n      - redis\n    environment:\n      - FUNKWHALE_HOSTNAME=audio.MYSITE.COM\n      - FUNKWHALE_PROTOCOL=https\n      - FUNKWHALE_PROTOCOL_HEADER=TRUE\n      - FUNKWHALE_PROXY_BODY_SIZE=200M\n      - FUNKWHALE_MAX_UPLOAD_SIZE=200M\n      - DATABASE_URL=postgresql:\/\/funkwhale:XXX_MY_DB_PWD_XXX@postgres:5432\/funkwhale\n      - REDIS_URL=redis:\/\/redis:6379\/0\n      - DJANGO_SECRET_KEY=XXXXX_MYSECRET_XXXXX\n      - FUNKWHALE_ENABLE_FEDERATION=false\n      - FUNKWHALE_DISABLE_REGISTRATION=true\n      # Email Configuration (for GMAIL)\n      - EMAIL_CONFIG=smtp+tls:\/\/MY_GMAIL_ADDRESS@gmail.com:XX_MY_APP_PASSWORD_XX@smtp.gmail.com:587\n      - DEFAULT_FROM_EMAIL=MY_GMAIL_ADDRESS@gmail.com\n    volumes:\n      - \/mnt\/funkwhale2-data\/media:\/data\/media\n      - \/mnt\/funkwhale2-data\/static:\/data\/static\n      - \/mnt\/funkwhale2-data\/music:\/music\n    networks:\n      - funkwhale2\n    ports:\n      - &quot;5001:80&quot;  # Choose e free host port; default is 5000\n      \n  postgres:\n    image: postgres:14\n    container_name: funkwhale2_postgres\n    restart: unless-stopped\n    environment:\n      - POSTGRES_USER=funkwhale\n      - POSTGRES_PASSWORD=XXX_MY_DB_PWD_XXX\n      - POSTGRES_DB=funkwhale\n    volumes:\n      - .\/postgres2:\/var\/lib\/postgresql\/data  # Different volume!\n    networks:\n      - funkwhale2\n      \n  redis:\n    image: redis:7-alpine\n    container_name: funkwhale2_redis\n    restart: unless-stopped\n    networks:\n      - funkwhale2\n      \nnetworks:\n  funkwhale2:  # I run 2 instances of Funkwhale on my docker.\n    external: false\n<\/code><\/pre><\/div>\n\n\n\n<p>Create your Django secret (or passwords) with this:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>openssl rand -base64 48<\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Funkwhale is a very nice audio hosting platform. We&#8217;ll install it using docker-compose in Portainer. Create your Django secret (or passwords) with this:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-1290","post","type-post","status-publish","format-standard","hentry","category-funkwhale"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts\/1290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1290"}],"version-history":[{"count":1,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts\/1290\/revisions"}],"predecessor-version":[{"id":1291,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts\/1290\/revisions\/1291"}],"wp:attachment":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}