No staticfiles or frontend files are serving
I realize this is likely a problem setting on my side, but I'm unable to get Funkwhale to serve any of the /staticfiles
or anything in /frontend
The API does work, and I can log in to the Django Admin area, but once again, no CSS or anything loads.
Here is my docker-compose.yml
:
version: '3' services: postgres: restart: unless-stopped env_file: .env image: postgres:9.4 volumes: - funkwhale_postgres:/var/lib/postgresql/data redis: restart: unless-stopped env_file: .env image: redis:3 volumes: - funkwhale_redis:/data celeryworker: restart: unless-stopped image: funkwhale/funkwhale:0.11 env_file: .env # 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 command: celery -A funkwhale_api.taskapp worker -l INFO links: - postgres - redis environment: - C_FORCE_ROOT=true volumes: - z:\music:/music:ro - z:\docker-data\funkwhale\media:/app/funkwhale_api/media celerybeat: restart: unless-stopped image: funkwhale/funkwhale:0.11 env_file: .env command: celery -A funkwhale_api.taskapp beat -l INFO links: - postgres - redis api: restart: unless-stopped image: funkwhale/funkwhale:0.11 env_file: .env volumes: - z:\music:/music:ro - z:\docker-data\funkwhale\media:/app/funkwhale_api/media - z:\docker-data\funkwhale\staticfiles:/app/staticfiles - z:\docker-data\funkwhale\frontend:/frontend ports: - "5000:5000" links: - postgres - redis # If you want to have the nginx proxy managed by docker for some reason # (i.e. if you use apache as a proxy on your host), # you can uncomment the following lines. # nginx: # image: nginx # links: # - api # volumes: # - ./nginx.conf:/etc/nginx/conf.d/funkwhale.conf:ro # - ./funkwhale_proxy.conf:/etc/nginx/funkwhale_proxy.conf:ro # - ./data/media:/srv/funkwhale/data/media:ro # - ./front/dist:/srv/funkwhale/front/dist:ro # - ./data/static:/srv/funkwhale/data/static/:ro # ports: # - "127.0.0.1:5001:80" volumes: funkwhale_frontend: funkwhale_redis: funkwhale_postgres:
Note that I had previously set it up so that /frontend
and /app/staticfiles
were serving from volumes called funkwhale_frontend
and funkwhale_static
respectively, and the same happened.
In the .env
I have my server URL (proxied by Caddy) listed, as well as localhost
to test. The FUNKWHALE_API_IP is set to 0.0.0.0
. Going to the URL, either via localhost or the domain name, shows up as "GET /" 404 74
in the API logs.