- Docker
- point domain to the server
Before running the instructions below make sure to check the official Docker installation guide for the latest instructions they may have changed in the meantime.
As of 20-05-2025 this is the script to install docker on Ubuntu 20.04 - 24.04
1- update the apt
repository.
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
2- Install docker engine latest
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
1- Create a directory for the project
2- Clone this repository there
3- Create a .env
file by copying the .env.example
and change the values to your needs
4- Create a acme.json file and give it the right permissions
touch letsencrypt/acme.json
chmod 600 letsencrypt/acme.json
5- Launch the container
docker compose up -d
Note this is necessary to play with redis : W3 Total Cache to take advantage of Redis Cache
removing the comments from the docker-compose.yml file will allow you to use the following features:
- Traefik dashboard
- Traefik verbose logs
#- "--api.insecure=true" --> to enable the Dashboard
#- "--log.level=DEBUG" --> to enable the verbose logs
ports:
#- "8080:8080" --> to enable the Dashboard
1- Install Docker Desktop
2- Create a directory for the project
3- Clone this repository there
4- Create a .env
file by copying the .env.example
and change the values to your needs
5- And spin the dev docker compose file
docker compose -f docker-compose.dev.yml up -d