Updated Docker Compose (markdown)

master
Hunter Long 2020-02-21 15:26:10 -08:00
parent 89960f0dd5
commit 2ecee46bad
1 changed files with 12 additions and 7 deletions

@ -6,18 +6,17 @@ This page includes multiple docker-compose.yml setups for you to run. There are
- [Postgres](#postgres-connection)
### Web Serving
- [Nginx as proxy pass](#nginx-proxy-pass)
- [Nginx with LetEncrypt SSL Cert](#nginx-proxy-pass-with-ssl-letencrypt)
- [Nginx with LetEncrypt SSL](#nginx-proxy-pass-with-ssl-letencrypt)
### Metrics
- [Grafana with Prometheus](#grafana-dashboard-with-prometheus)
---
# Docker Volumes
- Main Volume: `/app`
- Config file: `/app/config.yml`
- Logs: `/app/logs`
- Assets: `/app/assets` (if you use custom styling)
- SQLite database: `/app/statping.db`
- `/app` - Main Volume that you should mount to a directory on the host machine
- `/app/config.yml` - Config file
- `/app/logs` - Logs folder (rotates every 3 days)
- `/app/assets` - Folder containing all CSS, SCSS, JS and other static files (if you use custom styling)
- `/app/statping.db` - SQLite database file (if you're using SQLite)
---
# Basic SQLite Connection
@ -41,6 +40,8 @@ statping:
container_name: statping
image: hunterlong/statping
restart: always
depends_on:
- mysql
ports:
- 8080:8080
volumes:
@ -81,6 +82,8 @@ statping:
- statping_data:/app
links:
- postgres
depends_on:
- postgres
environment:
DB_CONN: postgres
DB_HOST: postgres
@ -105,6 +108,7 @@ postgres:
```
# Nginx Proxy Pass
The [jwilder/nginx-proxy](https://github.com/jwilder/nginx-proxy) Docker image will automatically redirect a domain to a specific container.
```yaml
statping:
@ -128,6 +132,7 @@ nginx:
```
# Nginx Proxy Pass with SSL (LetEncrypt)
Using the [jwilder/nginx-proxy](https://github.com/jwilder/nginx-proxy) image along with [jrcs/docker-letsencrypt-nginx-proxy-companion](https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion) you'll be able to automatically generate SSL certificates for your Statping instance.
```yaml
statping: