Simple docker-compose
file for standing up a Rancher V1
instance with HTTPS courtesy of LetsEncrypt.
- Docker version >= 18, and Docker Compose version >= 1.18
- A publicly accessible, fully qualified domain name (FQDN). See e.g., DigitalOcean's tutorial if you're unfamiliar with how to set this up.
First, replace the template variables in .env
with your hostname and email.
Then, to launch the service:
# Clone the repo.
$ git clone https://github.com/jessestuart/js-rancher
$ cd js-rancher
# This will create a new external network (`nginx-net`), and stand up
# the three containers required to boot the app.
$ make start
To inspect the logs:
$ docker-compose logs -f
To tear the service down:
$ make destroy