ExecStart=/usr/bin/dockerd -H fd:// -H tcp://127.0.0.1:275 -H unix:///var/run/docker.sock
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0-rc1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
cd ...
docker build -t telethonkids/new_shiny_app ./<project directory>/webapp
docker-compose up -d
These instructions were used to set up a secure HTTPS connection with Certbot SSL certificates. Also see here.
This will not work out of the box, the NGINX configuration file will need to be
updated with your domain name (which is required) at the indicated places in
nginx.conf
. init-letsencrypt.sh
also needs to be configured with your domain
names(s) and email address.
The following commands will need to be run on the host machine in order to obtain
the first valid certificates: first run chmod +x init-letsencrypt.sh
then
./init-letsencrypt.sh
.
If HTTPS security is not wanted then you will need to remove the indicated chunks
of code in nginx.conf
.