tryina run someone else’s website using docker. instead of what i wanted to see, i only have nginx landing page
- nginx at localhost : 8080
- directory and compose file
- the php file i wanna see instead
- docker container view
site.conf
server {
index board.php;
server_name php-docker.local;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/accessr.log;
root /code;
location ~ .php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass mila:9000;
fastcgi_index board.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
compose.yml
version: "3.8"
services:
web:
image: nginx:latest
ports:
- "8080:80"
volumes:
- ./code:/code
- ./site.conf:/etc/nginx/conf.d/site.conf
links:
- mila
mila:
image: php:8.3-fpm
volumes:
- ./code:/code
please help, i just wanna see the thing my friend has made, so i can figure out what it’s supposed to look like. (if needed context: this is a google sheet integration)
tried going to localhost:8080, seeing nginx
tried recomposing
New contributor
user23308204 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.