-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
60 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
- next | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Test Web Access | ||
run: docker-compose -f docker-compose.test.yml run --rm sut |
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,21 @@ | ||
version: '3.5' | ||
|
||
services: | ||
nginx: | ||
build: ./test/nginx | ||
redis: | ||
image: redis | ||
bull-board: | ||
build: . | ||
environment: | ||
REDIS_HOST: redis | ||
PROXY_PATH: /app/bull-board/ | ||
PORT: 80 | ||
depends_on: | ||
- redis | ||
- nginx | ||
sut: # docker hub test entry | ||
image: curlimages/curl | ||
command: -sSL --retry 3 --retry-connrefused http://nginx/app/bull-board | ||
depends_on: | ||
- bull-board |
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,3 @@ | ||
FROM nginx:stable-alpine | ||
|
||
ADD conf.d/ /etc/nginx/conf.d |
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,16 @@ | ||
server { | ||
listen 80; | ||
server_name localhost; | ||
resolver 127.0.0.11; | ||
|
||
location ^~ /app/ { | ||
if ($request_uri ~ ^/app/([^/?]+)/?(.*)$ ) { | ||
set $appname "$1"; | ||
} | ||
|
||
proxy_cache_bypass $cookie_session; | ||
proxy_no_cache $cookie_session; | ||
|
||
proxy_pass http://$appname/$2; | ||
} | ||
} |