Skip to content

Commit e92fee6

Browse files
committed
simple web server docker config
1 parent ee21062 commit e92fee6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docker-compose.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# https://docs.docker.com/compose/compose-file/compose-file-v2/
2+
3+
version: "2.4"
4+
5+
services:
6+
7+
web:
8+
# https://hub.docker.com/_/nginx
9+
image: nginx:latest
10+
ports:
11+
- "8080:80"
12+
restart: on-failure
13+
volumes:
14+
# Mount website directory
15+
- ./docs:/usr/share/nginx/html:ro

0 commit comments

Comments
 (0)