This article is no longer updated, there may be instances of outdated content, real-time updates, visit the original address: and enable ssl certificate (certbot) based Docker build LNMP environment ;
Construction of docker-compose.yml
a key LNMP deployment environment.
As follows:
1.clone project
git clone https://github.com/aitlp/dnmp-pure.git
2. Start
docker-compose up -d
3. Stop Nginx
docker container stop nginx
4. Application for certificate
./init-letsencrypt.sh
All done!