From 4229ddfe6f289298fcc552c894cf23f5be7b5dd4 Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Sun, 24 Jun 2018 20:20:02 -0700 Subject: [PATCH] Created Docker (markdown) --- Docker.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Docker.md diff --git a/Docker.md b/Docker.md new file mode 100644 index 0000000..bcab06e --- /dev/null +++ b/Docker.md @@ -0,0 +1,21 @@ +# Install on Docker +This Docker image uses Alpine Linux to keep it ultra small. +```bash +docker run -it -p 8080:8080 hunterlong/statup +``` +#### Or use Docker Compose +This Docker Compose file inlcudes NGINX, Postgres, and Statup. +```bash +wget https://raw.githubusercontent.com/hunterlong/statup/master/servers/docker-compose.yml +docker-compose up -d +``` + +#### Docker Compose with Automatic SSL +You can automatically start a Statup server with automatic SSL encryption using this docker-compose file. First point your domain's DNS to the Statup server, and then run this docker-compose command with DOMAIN and EMAIL. Email is for letsencrypt services. +``` +wget https://raw.githubusercontent.com/hunterlong/statup/master/servers/docker-compose-ssl.yml + +LETSENCRYPT_HOST=mydomain.com \ + LETSENCRYPT_EMAIL=info@mydomain.com \ + docker-compose -f docker-compose-ssl.yml up -d +``` \ No newline at end of file