linuxserver / docker-snipe-it

Alpine/Nginx container for the Asset Management software Snipe-IT
GNU General Public License v3.0
123 stars 26 forks source link

[BUG] Uh oh! Snipe-IT thinks your URL is http://localhost:8080, but your real URL is http://localhost/setup Please update your APP_URL settings in your .env file #56

Closed nguamay closed 1 year ago

nguamay commented 1 year ago

Is there an existing issue for this?

Current Behavior

My file docker-compose i have set APP_URL=http://localhost:8080. When go to http://localhost:8080/setup show Error: "Uh oh! Snipe-IT thinks your URL is http://localhost:8080, but your real URL is http://localhost/setup Please update your APP_URL settings in your .env file" image

Expected Behavior

No response

Steps To Reproduce

I'm running docker in Windows 10

Environment

- OS: Windows 10
- How docker service was installed:

CPU architecture

x86-64

Docker creation

version: '3'
networks:
    snipeit-network:
        driver: bridge

services:
    snipe-it:
        networks:
            - snipeit-network
        image: lscr.io/linuxserver/snipe-it:latest
        container_name: snipe-it
        environment:
          - PUID=1000
          - PGID=1000
          - TZ=Etc/UTC
          - APP_URL=http://localhost:8080
          - MYSQL_PORT_3306_TCP_ADDR=mysql
          - MYSQL_PORT_3306_TCP_PORT=3306
          - MYSQL_DATABASE=snipeit
          - MYSQL_USER=snipeit
          - MYSQL_PASSWORD=ppp@123
        volumes:
          - /path/to/data:/config
        ports:
          - 8080:80
        restart: unless-stopped

    mysql:
        networks:
            - snipeit-network
        image: mysql
        container_name: mysql
        command: --default-authentication-plugin=mysql_native_password
        restart: always
        volumes:
            - G:/database/:/var/lib/mysql
        environment:
            MYSQL_ROOT_PASSWORD: ppp@123
            MYSQL_DATABASE: snipeit
            MYSQL_USER: snipeit
            MYSQL_PASSWORD: ppp@123

Container logs

No
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

rdagger commented 1 year ago

Having the same problem. I opened a new issue to hopefully provide more info. https://github.com/linuxserver/docker-snipe-it/issues/57