The simple web server in Docker for a static web page. To work with the server, you only need Docker installed. It's just a Nginx server running in Docker.
make install
- initial setupmake up
- start servermake down
- stop servermake restart
- reboot server with new config or files linkmake exec
- go to the server consolemake logs
- view server logs
- Run
make install
. The command uses the.env.example
file as a template (don't change it) and creates a new.env
file where you can specify your free port number. - Copy your files. Add your files to the
app
directory or create a symbolic link to your static directory. Create a symbolic link:ln -s {project-directory} app
, use your own path instead of{project-directory}
. Then restart the servermake restart
. - For the next, you can run
make up
to start andmake down
to stop the server.