nginx docker compose sample

pull/342/head
hunterlong 2020-01-07 20:04:41 -08:00
parent 85fb9f7b3f
commit 276e6f04c6
3 changed files with 33 additions and 4 deletions

View File

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

21
dev/docker-compose-nginx.yml vendored Normal file
View File

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

12
dev/nginx.conf vendored Normal file
View File

@ -0,0 +1,12 @@
worker_processes 1;
events { worker_connections 1024; }
http {
server {
location / {
proxy_pass http://statping:8080;
}
listen 80;
}
}