Just copy the following settings in docker-compose.yml and run docker-compose up or docker-compose-up -d and then open browser to view http://localhost:
version: '3.8'
services:
web:
image: 5xcampus/nginx:latest
container_name: nginx
stdin_open: true
tty: true
volumes:
- .:/usr/share/nginx/html:ro
ports:
- 80:80
Content type
Image
Digest
Size
9.3 MB
Last updated
over 5 years ago
docker pull 5xcampus/nginx