A website that documents how to interact with roombots and also keeps tabs on the current whereabouts of my roombots.
This project is deployed with docker. You can see the Dockerfile for details or you can run your own using the public docker image.
To build a new docker image follow these steps:
config/prod.secret.exs
file with your database credentialsconfig/prod.exs
brunch build --production
docker build -t hqmq/roombots:latest .
The image exposes port 80 (and optionally port 443) so when you run the docker container make sure you map that to something public.
When you run the docker image you will need to set the following environment variables:
URL_HOST
the hostname to use for generating linksURL_PORT
the port you use publicly for accepting traffic, used for generating linksSECRET_KEY_BASE
the secret to use for signing sessions and other secret dataSSL_KEY_FILE
optional the SSL key fileSSL_CERT_FILE
optional the SSL cert filePersonally I do this with a docker command like:
sudo docker run -d \
-p 80:80 \
-p 443:443 \
-e "SSL_KEY_FILE=/etc/ssl/private/roombots.mx.com.key" \
-e "SSL_CERT_FILE=/etc/ssl/certs/roombots.mx.com.pem" \
-e "URL_HOST=roombots.mx.com" \
-e "URL_PORT=80" \
-v /etc/ssl:/etc/ssl \
--name roombots hqmq/roombots:0.2.3