Adicionar docker-compose.yml
This commit is contained in:
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user