mirror of https://github.com/statping/statping
nginx docker compose sample
parent
85fb9f7b3f
commit
276e6f04c6
|
@ -123,8 +123,4 @@ type traefikService struct {
|
|||
} `json:"servers"`
|
||||
PassHostHeader bool `json:"passHostHeader"`
|
||||
} `json:"loadBalancer,omitempty"`
|
||||
ServerStatus struct {
|
||||
HTTP17217128080 string `json:"http://172.17.1.2:8080"`
|
||||
} `json:"serverStatus,omitempty"`
|
||||
Type string `json:"type,omitempty"`
|
||||
}
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
|
||||
nginx:
|
||||
container_name: nginx
|
||||
image: nginx:latest
|
||||
restart: always
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||
ports:
|
||||
- 80:80
|
||||
expose:
|
||||
- 80
|
||||
|
||||
statping:
|
||||
container_name: statping
|
||||
image: hunterlong/statping:latest
|
||||
restart: always
|
||||
expose:
|
||||
- 8080
|
|
@ -0,0 +1,12 @@
|
|||
worker_processes 1;
|
||||
|
||||
events { worker_connections 1024; }
|
||||
|
||||
http {
|
||||
server {
|
||||
location / {
|
||||
proxy_pass http://statping:8080;
|
||||
}
|
||||
listen 80;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue