- Create Nginx configuration files by executing Nginx once.
docker run --rm -e PUID=1000 -e PGID=1000 -e TZ=Asia/Seoul --volume /opt/docker/mkdocsmat-nginx:/config -p 8888:80 linuxserver/nginx
-
Copy Nginx default server configuration to
config/nginx/site-confs/default
. This makes Nginx as a proxy server that forwards EXTERNAL_PORT to 8000 port of MkDocs-Material -
Copy MkDocs-Material default configurations to
config/nginx/mkdocsmat/
usingcp -rf
so that making all of the inner files moved. These are the necessary basic configuration files of MkDocs-Material. -
Then run
docker-compose up -d
-
If you access to http://server:8888, Nginx server acts as reverse proxy server for MkDocs-Material so that you can see your MkDocs-Material websites.