Created Docker (markdown)

master
Hunter Long 2018-06-24 20:20:02 -07:00
parent f85d4a5bda
commit 4229ddfe6f
1 changed files with 21 additions and 0 deletions

21
Docker.md Normal file

@ -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
```