24 lines
514 B
YAML
24 lines
514 B
YAML
# DOSee Docker compose to load an nginx webhost server
|
|
#
|
|
# Run: docker-compose up -d
|
|
# Access in browser: http://localhost:5555
|
|
|
|
version: "3.2"
|
|
|
|
services:
|
|
|
|
web:
|
|
build: ./libs
|
|
|
|
# nginx stable is used due to its less frequent updates
|
|
# alpine is a tiny linux distribution
|
|
image: nginx:stable-alpine
|
|
|
|
# read-only mount this local root directory to the nginx html share
|
|
volumes:
|
|
- .:/usr/share/nginx/html:ro
|
|
|
|
# expose nginx web port 80 as port 5555
|
|
ports:
|
|
- "5555:80"
|
|
|