These are some reasons why use this Docker Compose in your Docker CDN Webserver
production environment.
☝️ 2 command to install
⚡ Performance Optimized
🔒 SSL auto-renewed
🆕 Latest docker images
- Ubuntu 20.04 LTS or Centos 8
- Php7.4 latest docker image(alpine)
- Nginx latest docker image(alpine)
- Certbot latest docker image
- Docker
- Docker-compose
Make sure that your CDN domain
is pointing to your server IP.
Open 80
,443
port for connect.
Copy this command below and run it inside your new server.
sudo apt update -y && sudo apt upgrade -y && sudo apt install curl git cron -y && sudo apt autoremove -y
curl -o dc https://raw.githubusercontent.com/woosungchoi/docker-cdn-webserver/master/dc && bash dc setup && rm -f dc
sudo yum -y update && sudo yum install -y curl git crontabs
curl -o dcc https://raw.githubusercontent.com/woosungchoi/docker-cdn-webserver/master/dcc && bash dcc setup && rm -f dcc
Commands | Description |
---|---|
./dc start |
Start your containers |
./dc stop |
Stop all containers |
./dc update |
Get latest docker images update and restart containers |