[GH-ISSUE #1752] Site not rendering after install #963

Closed
opened 2026-02-26 02:34:45 +03:00 by kerem · 2 comments
Owner

Originally created by @AlexBrightwater on GitHub (Feb 28, 2024).
Original GitHub issue: https://github.com/koel/koel/issues/1752

Describe the bug
I installed koel via docker and put it behind a reverse proxy. When opening the domain I registered, the site shows the login screen for a split second and is blank aferwards.

To reproduce

  1. Install koel via docker with mysql
  2. run php artisan koel:init --no-assets
  3. run php artisan koel:admin:change-password
  4. run php artisan koel:sync
  5. Register Domain
  6. Setup reverse proxy with SSL and point to container

Expected behavior
After setting everything up as described, I would expect the koel login screen.

Screenshots
image

Environment

  • Koel version latest docker image
  • OS: debian bookworm via docker-compose
  • Browser: Firefox 123.0
  • PHP version: whatever the docker image uses
  • Node version: whatever the docker image uses

Additional context
My docker-compose.yml:

version: "3"
services:
  koel:
    image: phanan/koel
    container_name: koel_app
    depends_on:
      - database
    environment:
      - DB_CONNECTION=mysql
      - DB_HOST=database
      - DB_USERNAME=koel
      - DB_PASSWORD=redacted
      - DB_DATABASE=koel
    volumes:
      - /mnt/fuse/volumes/nextcloud_data/data/media/files/Media/music:/music
      - /mnt/sda1/volumes/koel_covers:/var/www/html/public/img/covers
      - /mnt/sda1/volumes/koel_search_index:/var/www/html/storage/search-indexes
    networks:
      - reverse-proxy-net
      - koel_net
  database:
    image: mariadb:10.11
    container_name: koel_db
    volumes:
      - /mnt/sda1/volumes/koel_db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=redacted
      - MYSQL_DATABASE=koel
      - MYSQL_USER=koel
      - MYSQL_PASSWORD=redacted
    networks:
      - koel_net
networks:
  koel_net:
    driver: bridge
  reverse-proxy-net:
    external: true

Logs: https://hastebin.skyra.pw/cixamagode.yaml

Originally created by @AlexBrightwater on GitHub (Feb 28, 2024). Original GitHub issue: https://github.com/koel/koel/issues/1752 **Describe the bug** I installed koel via docker and put it behind a reverse proxy. When opening the domain I registered, the site shows the login screen for a split second and is blank aferwards. **To reproduce** 1. Install koel via docker with mysql 2. run `php artisan koel:init --no-assets` 3. run `php artisan koel:admin:change-password` 4. run `php artisan koel:sync` 5. Register Domain 6. Setup reverse proxy with SSL and point to container **Expected behavior** After setting everything up as described, I would expect the koel login screen. **Screenshots** ![image](https://github.com/koel/koel/assets/90156402/cfe4973f-82a2-4014-aa77-5187ec2724ad) **Environment** - Koel version latest docker image - OS: debian bookworm via docker-compose - Browser: Firefox 123.0 - PHP version: whatever the docker image uses - Node version: whatever the docker image uses **Additional context** My docker-compose.yml: ```yml version: "3" services: koel: image: phanan/koel container_name: koel_app depends_on: - database environment: - DB_CONNECTION=mysql - DB_HOST=database - DB_USERNAME=koel - DB_PASSWORD=redacted - DB_DATABASE=koel volumes: - /mnt/fuse/volumes/nextcloud_data/data/media/files/Media/music:/music - /mnt/sda1/volumes/koel_covers:/var/www/html/public/img/covers - /mnt/sda1/volumes/koel_search_index:/var/www/html/storage/search-indexes networks: - reverse-proxy-net - koel_net database: image: mariadb:10.11 container_name: koel_db volumes: - /mnt/sda1/volumes/koel_db:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=redacted - MYSQL_DATABASE=koel - MYSQL_USER=koel - MYSQL_PASSWORD=redacted networks: - koel_net networks: koel_net: driver: bridge reverse-proxy-net: external: true ``` Logs: https://hastebin.skyra.pw/cixamagode.yaml
kerem closed this issue 2026-02-26 02:34:45 +03:00
Author
Owner

@AlexBrightwater commented on GitHub (Feb 28, 2024):

Since the music in the volume is owned by user 33 on the host, I tried setting the environment to user 33 for the koel_app.

environment:
  [...]
  - UID=33 
  - GID=33 
  - GIDLIST=33

But this did not help.

<!-- gh-comment-id:1970089377 --> @AlexBrightwater commented on GitHub (Feb 28, 2024): Since the music in the volume is owned by user 33 on the host, I tried setting the environment to user 33 for the koel_app. ```yml environment: [...] - UID=33 - GID=33 - GIDLIST=33 ``` But this did not help.
Author
Owner

@AlexBrightwater commented on GitHub (Feb 29, 2024):

I found out that there are two environment variables needed that are not stated in the documentation/ default docker-compose.yml as mandatory for usage with a reverse proxy.

I added APP_URL=https://mydomain.comand FORCE_HTTPS=true to the environment directive of the koel_app.

<!-- gh-comment-id:1972153056 --> @AlexBrightwater commented on GitHub (Feb 29, 2024): I found out that there are two environment variables needed that are not stated in the documentation/ default docker-compose.yml as mandatory for usage with a reverse proxy. I added `APP_URL=https://mydomain.com`and `FORCE_HTTPS=true` to the environment directive of the koel_app.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#963
No description provided.