Add work_queue_webui Ansible role
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m4s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m4s
This commit is contained in:
24
roles/work_queue_webui/templates/docker-compose.yml.j2
Normal file
24
roles/work_queue_webui/templates/docker-compose.yml.j2
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
services:
|
||||
webui:
|
||||
image: {{ work_queue_webui_image }}
|
||||
volumes:
|
||||
- {{ work_queue_webui_data_path }}:/app/data
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://localhost:80"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
proxy:
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
- "{{ work_queue_webui_proxy_port }}:80"
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
depends_on:
|
||||
webui:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
|
||||
12
roles/work_queue_webui/templates/nginx.conf.j2
Normal file
12
roles/work_queue_webui/templates/nginx.conf.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
location / {
|
||||
proxy_pass http://webui:80;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user