diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..5032cb8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +services: + nginx: + image: nginx:alpine # Use the lightweight Alpine image + ports: + - "8080:80" # Map port 8080 on the host to port 80 in the container + volumes: + - ./src:/usr/share/nginx/html:ro # Mount the local src directory to Nginx's default web root + restart: unless-stopped # Ensure the container restarts automatically