forked from gpupo/httpd-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice-nginx-proxy.yaml
31 lines (31 loc) · 1003 Bytes
/
service-nginx-proxy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
version: '3.9'
services:
abstract-nginx-proxy:
container_name: nginx-proxy
image: nginxproxy/nginx-proxy:${SERVICE_NGINX_PROXY_TAG}
profiles:
- "frontendProfile"
- "mainProfile"
- "nginxProfile"
restart: always
logging:
options:
max-size: ${CONTAINER_DEFAULT_MAX_SIZE}
max-file: ${CONTAINER_DEFAULT_MAX_FILE}
environment:
- HTTPS_METHOD=noredirect
- DEFAULT_HOST=
- HSTS=off
ports:
- '${HOST_PORT_HTTP:-80}:80'
- '${HOST_PORT_HTTPS:-443}:443'
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- certs:/etc/nginx/certs:rw
- vhost:/etc/nginx/vhost.d
- dhparam:/etc/nginx/dhparam
- $PWD/nginx/html:/usr/share/nginx/html
- $PWD/nginx/conf.d/cloudflare.conf:/etc/nginx/conf.d/cloudflare.conf
- $PWD/nginx/conf.d/limits.conf:/etc/nginx/conf.d/limits.conf
- $PWD/nginx/conf.d/tokens.conf:/etc/nginx/conf.d/tokens.conf
- /etc/localtime:/etc/localtime