dwchiang/nginx-php-fpm

Web not running in browser, nginx instead

Closed this issue · 0 comments

I am using dockerfile FROM php:8.0.20-fpm-alpine3.16,
When Exec sudo docker build -t myrepo . --no-cache && sudo docker run -d -p 7878:80 --name=myrepo myrepo && sudo docker ps -a, its successfully built,
At logs displays:
2023/01/10 09:14:04 [notice] 9#9: start worker process 21
2023/01/10 09:14:04 [notice] 9#9: start cache manager process 22
2023/01/10 09:14:04 [notice] 9#9: start cache loader process 23
[10-Jan-2023 09:14:04] NOTICE: fpm is running, pid 8
[10-Jan-2023 09:14:04] NOTICE: ready to handle connections
2023-01-10 09:14:05,656 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-01-10 09:14:05,656 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023/01/10 09:15:04 [notice] 23#23: http file cache: /dev/shm 0.000M, bsize: 4096
2023/01/10 09:15:04 [notice] 9#9: signal 17 (SIGCHLD) received from 23
2023/01/10 09:15:04 [notice] 9#9: cache loader process 23 exited with code 0
2023/01/10 09:15:04 [notice] 9#9: signal 29 (SIGIO) received

but when i go to localhost:7878 at browser, only display "Welcome to nginx! displayed"

what's wrong ?