404 nginx error

I tried using their default docker-compose config this is what happens. I’m slightly confused as I’m not even using Nginx.
Help would be appreciated!

version: '2'
services:
  kanboard:
    image: kanboard/kanboard:latest
    ports:
      - "88:80"
      - "443:443"
    volumes:
      - kanboard_data:/var/www/app/data
      - kanboard_plugins:/var/www/app/plugins
      - kanboard_ssl:/etc/nginx/ssl
volumes:
  kanboard_data:
  kanboard_plugins:
  kanboard_ssl:

the docker image is using nginx. therefore, you are using nginx. there isn’t enough information to help you further.

I am not sure what info I should give as this is literally all I did. The only thing is that I encountered a similar error when trying to get nextcloud to work. Not really sure if that is helpful info though.
Would it be possible to use kanboard without nginx?

nginx isn’t your problem. but ya, you could build your own container and use apache. why though? the supplied docker container is literally flawless.

why are you using port 88 to 80? and keeping 443 on 443?

I’m only using http and 80 is already in use. I just didn’t bother removing 443. I didn’t think it would cause a problem. What do you think is the problem? I am very new to this so please excuse me for my lack of knowledge.

try 8888 and 8443 respectively. if 80 is in use then so is 443.

and you should think about using a reverse proxy.
it will make life so much simpler.

I use:

all assuming you want access outside local network.

Changing the port did something? I still get an error though:

I have been thinking about using a reverse proxy. But I was thinking the setup would be somewhat the same so I didn’t want to make it more complex when it isn’t working. And for the time being, I only need local acces. A reverse proxy would only be useful for remote connections, right?

do you know how check your container logs?might help tell us what’s going on. are you using any container management, i.e. Portainer?

I am indeed using portainer.
Logs:


PHP message: PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0"

ERROR: Unable to open primary script: /var/www/app/index.php (Permission denied)"

2021/08/01 12:13:52 [error] 16#16: *1 FastCGI sent in stderr: "PHP message: PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0Unable to open primary script: /var/www/app/index.php (Permission denied)" while reading response header from upstream, client: 192.168.10.188, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.10.140:8888"

2021/08/01 12:13:52 [error] 16#16: *1 open() "/var/www/app/favicon.ico" failed (13: Permission denied), client: 192.168.10.188, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.10.140:8888", referrer: "http://192.168.10.140:8888/"

PHP message: PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0"

ERROR: Unable to open primary script: /var/www/app/index.php (Permission denied)"

2021/08/01 12:14:04 [error] 16#16: *1 FastCGI sent in stderr: "PHP message: PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0Unable to open primary script: /var/www/app/index.php (Permission denied)" while reading response header from upstream, client: 192.168.10.188, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.10.140:8888"

2021/08/01 12:14:04 [error] 16#16: *1 open() "/var/www/app/favicon.ico" failed (13: Permission denied), client: 192.168.10.188, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.10.140:8888", referrer: "http://192.168.10.140:8888/"

those look like permission issues with your volumes. I’m working on my jeep today, so I can takeba closer look tonight

so, one thing you can try, drop the compose. just add a container using “add a container”

don’t map any volumes.

then you can problem solve from there if that works, since you’ll know there is an issue with your mapped volumes.