-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
37 lines (34 loc) · 1.04 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: "2"
services:
nginx:
image: 01it/nginx:latest
ports:
- "80:80"
environment:
NGINX_WORKER_PROCESSES: 2
NGINX_WORKER_RLIMIT_NOFILE: 2048
NGINX_WORKER_CONNECTIONS: 2048
NGINX_REMOVE_DEFAULT_CONF: "True"
NGINX_UPSTREAMS: |
[test1]='"http-echo-test1:8080"
"http-echo-test2:8181 weight=2"'
[test2]='"http-echo-test2:8181 weight=1"'
NGINX_SERVER: |
[SERVER_NAME]='_'
[PORT]='80 default'
[SSL]='False'
[SSL_CERTIFICATE]=''
[SSL_CERTIFICATE_KEY]=''
NGINX_LOCATIONS: |
[test1]='[NAME]=/test1
[PROXY_PASS]=http://test1'
[test2]='[NAME]=/test2
[PROXY_PASS]=http://test2'
[def]='[NAME]=/
[ROOT]=/usr/share/nginx/html'
http-echo-test1:
image: hashicorp/http-echo:latest
command: -listen=:8080 -text='{"echo":"http echo test1"}'
http-echo-test2:
image: hashicorp/http-echo:latest
command: -listen=:8181 -text='{"echo":"http echo test2"}'