add docker-compose.exposed.yml
This commit is contained in:
parent
3c1a186c31
commit
2f681931ba
32
config/nginx.exposed.conf
Normal file
32
config/nginx.exposed.conf
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
upstream app {
|
||||||
|
server $APPLICATION;
|
||||||
|
}
|
||||||
|
|
||||||
|
include /etc/nginx/include/upstream.conf;
|
||||||
|
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
include /etc/nginx/mime.types;
|
||||||
|
include /etc/nginx/include/csp.conf;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://app;
|
||||||
|
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection 'upgrade';
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
|
||||||
|
include /etc/nginx/include/security-headers.conf;
|
||||||
|
}
|
||||||
|
|
||||||
|
location = /health {
|
||||||
|
access_log off;
|
||||||
|
add_header 'Content-Type' 'application/json';
|
||||||
|
return 200 'UP';
|
||||||
|
}
|
||||||
|
|
||||||
|
include /etc/nginx/include/location.conf;
|
||||||
|
}
|
||||||
19
docker-compose.exposed.yml
Normal file
19
docker-compose.exposed.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
server:
|
||||||
|
extends:
|
||||||
|
file: docker-compose.traefik.yml
|
||||||
|
service: server
|
||||||
|
image: nginx:alpine
|
||||||
|
environment:
|
||||||
|
- APPLICATION=${APPLICATION}
|
||||||
|
volumes:
|
||||||
|
- ./config/nginx.exposed.conf:/etc/nginx/templates/default.conf.template
|
||||||
|
- ./config/include:/etc/nginx/include
|
||||||
|
- ./config/http/nginx.conf:/etc/nginx/nginx.conf
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
networks:
|
||||||
|
web:
|
||||||
|
external: true
|
||||||
Loading…
x
Reference in New Issue
Block a user