-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reverse Proxy for Jenkins-deb on docker-compose
- Loading branch information
1 parent
b1295e5
commit af8fab1
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
tasks/dockerservice/home/hayato/compose/jenkins-deb/docker-compose.yml
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,18 @@ | ||
services: | ||
Check failure on line 1 in tasks/dockerservice/home/hayato/compose/jenkins-deb/docker-compose.yml GitHub Actions / AnsibleLintschema[tasks]
|
||
jenkins-deb-container: | ||
container_name: jenkins-deb-container | ||
image: nginx:latest | ||
restart: always | ||
stdin_open: true | ||
tty: true | ||
networks: | ||
- reverse-proxy | ||
volumes: | ||
- jenkins_deb:/usr/share/nginx/html | ||
|
||
volumes: | ||
jenkins_deb: | ||
|
||
networks: | ||
reverse-proxy: | ||
external: true |
17 changes: 17 additions & 0 deletions
17
tasks/dockerservice/home/hayato/compose/reverseproxy/docker-compose.yml
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,17 @@ | ||
services: | ||
Check failure on line 1 in tasks/dockerservice/home/hayato/compose/reverseproxy/docker-compose.yml GitHub Actions / AnsibleLintschema[tasks]
|
||
reverseProxy: | ||
container_name: reverse-proxy | ||
image: nginx:latest | ||
restart: always | ||
stdin_open: true | ||
tty: true | ||
ports: | ||
- 80:80 | ||
volumes: | ||
- ./nginx.conf:/etc/nginx/nginx.conf:ro | ||
networks: | ||
- reverse-proxy | ||
|
||
networks: | ||
reverse-proxy: | ||
external: true |
34 changes: 34 additions & 0 deletions
34
tasks/dockerservice/home/hayato/compose/reverseproxy/nginx.conf
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,34 @@ | ||
|
||
user nginx; | ||
worker_processes auto; | ||
|
||
error_log /var/log/nginx/error.log notice; | ||
pid /var/run/nginx.pid; | ||
|
||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
|
||
access_log /var/log/nginx/access.log main; | ||
|
||
sendfile on; | ||
keepalive_timeout 65; | ||
|
||
server { | ||
server_name jenkins-deb.hayaworld.home; | ||
proxy_set_header Host $host; | ||
listen 80; | ||
location / { | ||
proxy_pass http://jenkins-deb-container/; | ||
} | ||
} | ||
} |