Skip to content

BaptisteCrouzet/Docker-Static-Simple-Site

Repository files navigation

Docker project for a static website

This repository aim to start a new installation and deployment of a website on a server using nginx. It provide an SSL certificate and allow to start a site.

Setup

Configuration

  • Rename the files in the site-available and site-enabled.

  • Change their content, by replacing baptistecrouzet.fr every where you can find it, by your own domaine name.

  • Add your domains inside init-letsencrypt.sh file

Setup in production

Put your code/website inside www folder.

Make sure your server allow SSL ports :

sudo ufw allow https #or desactivate it with sudo ufw disable

Then execute this command :

./init-letsencrypt.sh

Finally execute this

docker-compose up -d

About

A basic docker configuration in order to set up a nginx and php-fpm server. It allow us to get a lets-encrypt SSL certificate via certbot too.

Topics

Resources

License

Stars

Watchers

Forks