- Install docker and docker-compose on your server.
- Create folder on your server with name like
nginx
. - Copy files
docker-compose.yml
andinit-letsencrypt.sh
anddata
folder to your nginx folder.
You must have structure like this.
nginx/
data/
docker-compose.yml
init-letsencrypt.sh
- Change dummy
domain.com
to your domain which already configured to server. Files which require this changes isdata/nginx.conf
andinit-letsencrypt.sh
. As well change insideinit-letsencrypt.sh
email to yours.