Skip to content
A simple todo app
JavaScript HTML CSS
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead, 6 commits behind simplon-lyon:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Docker nginx boilerplate

A simple static website boilerplate based on docker and nginx


To run the app, you need to have docker, docker-compose and dnsmasq installed.

Docker engine

  1. Remove docker older version sudo apt-get remove docker docker-engine
  2. As always, apt update before anything ... sudo apt-get update -y
  3. allow Docker to use the aufs storage drivers. sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual
  4. Install packages to allow apt to use a repository over HTTPS sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
  5. Add GPG key curl -fsSL | sudo apt-key add -
  6. Add repository sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"
  7. update apt list sudo apt-get update -y
  8. install docker latest version sudo apt-get install -y docker-ce

source :

Docker compose

  1. download docker compose in /usr/local/bin/docker-compose
  sudo curl -L`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
  1. make docker-compose executable sudo chmod +x /usr/local/bin/docker-compose
  2. Installing command completion sudo curl -L -o /etc/bash_completion.d/docker-compose
  3. Optional, add current user to docker group sudo usermod -a -G docker $USER

source :


In order to redirect .dev tld to localhost, you need dnsmasq. To install it, do the following on ubuntu :

  1. edit /etc/NetworkManager/NetworkManager.conf and replace dns=dnsmasq by #dns=dnsmasq
  2. run sudo apt-get install dnsmasq
  3. edit /etc/dnsmasq.conf and add those lines to the file :
  1. run sudo netstat -plant | grep :53 and look for NUMBER/dnsmasq
  2. run sudo kill -9 NUMBER replace NUMBER by the number(s) you have seen in previous step.
  3. run sudo systemctl restart dnsmasq.service, this will restart the dnsmasq service.
  4. edit /etc/dhcp/dhclient.conf and uncomment (remove the #) on this line : prepend domain-name-servers;
  5. run sudo systemctl restart NetworkManager.service to restart the network manager, you will temporarily lost your network connection.

source :

You can’t perform that action at this time.