Only see NGINX default page after setting up the first time setup page

I’m installing Invoice Ninja using docker on my windows 10.

After installed,
ran docker-compose exec app php artisan migrate
setup the first time

then it bring me to an empty page.
When I reload my local ip for example http://192.168.1.246:8003/
I’m only getting Welcome to nginx page.

env
APP_URL=http://test.duckdns.org:8003/
APP_KEY=
APP_DEBUG=true
MULTI_DB_ENABLED=false
DB_HOST1=db
DB_PORT1=3306
DB_USERNAME1=ninja
DB_PASSWORD1=ninja
DB_DATABASE1=ninja
MYSQL_ROOT_PASSWORD=ninjaAdm1nPassword
MYSQL_USER=ninja
MYSQL_PASSWORD=ninja
MYSQL_DATABASE=ninja

server:
image: nginx
restart: always
env_file: env
volumes:
# Vhost configuration
#- ./config/caddy/Caddyfile:/etc/caddy/Caddyfiledocker-com
- ./config/nginx/in-vhost.conf:/etc/nginx/conf.d/in-vhost.conf:ro
- ./docker/app/public:/var/www/app/public:ro
depends_on:
- app
# Run webserver nginx on port 80
# Feel free to modify depending what port is already occupied
ports:
- “8003:80”
#- “443:443”
networks:
- invoiceninja
extra_hosts:
- "in.localhost:192.168.1.246 " #host and ip

server {
listen 80;
server_name servername.org;

client_max_body_size 100M;

root /var/www/app/public/;
index index.php;

location / {
    try_files $uri $uri/ /index.php?$query_string;
}

location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt  { access_log off; log_not_found off; }

location ~ \.php$ {
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass app:9000;
    fastcgi_index index.php;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_intercept_errors off;
    fastcgi_buffer_size 16k;
    fastcgi_buffers 4 16k;
}

}

Managed to solve this issue by redirect to the correct url.

Am getting another error which is related to the memory exhausted. How can I edit php.ini in my docker file?

Hi,

Maybe this will help:

Hello. Can you share how you got this fixed? Having the same problem. What do you mean by “redirect to the correct url”?