Loading assets/config/nginx.conf 0 → 100644 +15 −0 Original line number Diff line number Diff line server { listen 80; server_name 193.197.228.92; location / { # This would be the directory where your React app's static files are stored at root /usr/share/nginx/html; try_files $uri /index.html; } } assets/site-content/index.html 0 → 100644 +11 −0 Original line number Diff line number Diff line <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Docker Nginx</title> </head> <body> <h2>Hello from Nginx container</h2> You made it. </body> </html> docker-compose.yaml 0 → 100644 +10 −0 Original line number Diff line number Diff line version: "2" services: nginx: image: nginx:1.25-alpine ports: - "80:80" volumes: - "./assets/site-content:/usr/share/nginx/html:rw" - "./assets/config:/etc/nginx/conf.d:rw" Loading
assets/config/nginx.conf 0 → 100644 +15 −0 Original line number Diff line number Diff line server { listen 80; server_name 193.197.228.92; location / { # This would be the directory where your React app's static files are stored at root /usr/share/nginx/html; try_files $uri /index.html; } }
assets/site-content/index.html 0 → 100644 +11 −0 Original line number Diff line number Diff line <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Docker Nginx</title> </head> <body> <h2>Hello from Nginx container</h2> You made it. </body> </html>
docker-compose.yaml 0 → 100644 +10 −0 Original line number Diff line number Diff line version: "2" services: nginx: image: nginx:1.25-alpine ports: - "80:80" volumes: - "./assets/site-content:/usr/share/nginx/html:rw" - "./assets/config:/etc/nginx/conf.d:rw"