-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
6bad02a
commit b8dc0cf
Showing
6 changed files
with
298 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: '3.0' | ||
|
||
services: | ||
alpine: | ||
image: nginx:alpine-slim | ||
init: true | ||
ports: | ||
- '81' | ||
- '82' | ||
- target: 80 | ||
host_ip: 127.0.0.1 | ||
protocol: tcp | ||
command: | ||
- sh | ||
- -c | ||
- 'd=/etc/nginx/conf.d; echo "server { listen 81; location / { return 202; } }" > $$d/81.conf && echo "server { listen 82; location / { return 204; } }" > $$d/82.conf && nginx -g "daemon off;"' | ||
|
||
alpine2: | ||
image: nginx:alpine-slim | ||
init: true | ||
ports: | ||
- target: 80 | ||
host_ip: 127.0.0.1 | ||
protocol: tcp | ||
command: | ||
- sh | ||
- -c | ||
- 'd=/etc/nginx/conf.d; echo "server { listen 81; location / { return 202; } }" > $$d/81.conf && echo "server { listen 82; location / { return 204; } }" > $$d/82.conf && nginx -g "daemon off;"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '3.0' | ||
|
||
services: | ||
alpine: | ||
image: nginx:alpine-slim | ||
init: true | ||
ports: | ||
- target: 80 | ||
host_ip: 127.0.0.1 | ||
protocol: tcp | ||
command: | ||
- sh | ||
- -c | ||
- 'nginx -g "daemon off;"' |
Oops, something went wrong.