mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-22 15:55:09 +00:00
feat: add nginx-proxy and acme-companion compose overrides
This commit is contained in:
parent
d057cd051e
commit
e790a9fb50
2 changed files with 47 additions and 0 deletions
26
overrides/compose.nginxproxy-ssl.yaml
Normal file
26
overrides/compose.nginxproxy-ssl.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
services:
|
||||||
|
frontend:
|
||||||
|
environment:
|
||||||
|
LETSENCRYPT_HOST: ${NGINX_PROXY_HOSTS:?No NGINX_PROXY_HOSTS set}
|
||||||
|
|
||||||
|
nginx-proxy:
|
||||||
|
ports:
|
||||||
|
- ${HTTP_PUBLISH_PORT:-80}:80
|
||||||
|
- ${HTTPS_PUBLISH_PORT:-443}:443
|
||||||
|
|
||||||
|
acme-companion:
|
||||||
|
image: nginxproxy/acme-companion:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
DEFAULT_EMAIL: ${LETSENCRYPT_EMAIL:?No LETSENCRYPT_EMAIL set}
|
||||||
|
volumes:
|
||||||
|
- nginx-proxy-certs:/etc/nginx/certs
|
||||||
|
- nginx-proxy-html:/usr/share/nginx/html
|
||||||
|
- nginx-proxy-vhost:/etc/nginx/vhost.d
|
||||||
|
- acme-data:/etc/acme.sh
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
depends_on:
|
||||||
|
- nginx-proxy
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
acme-data:
|
||||||
21
overrides/compose.nginxproxy.yaml
Normal file
21
overrides/compose.nginxproxy.yaml
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
services:
|
||||||
|
frontend:
|
||||||
|
environment:
|
||||||
|
VIRTUAL_HOST: ${NGINX_PROXY_HOSTS:?No NGINX_PROXY_HOSTS set}
|
||||||
|
VIRTUAL_PORT: 8080
|
||||||
|
|
||||||
|
nginx-proxy:
|
||||||
|
image: nginxproxy/nginx-proxy:alpine
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- ${HTTP_PUBLISH_PORT:-80}:80
|
||||||
|
volumes:
|
||||||
|
- nginx-proxy-certs:/etc/nginx/certs
|
||||||
|
- nginx-proxy-html:/usr/share/nginx/html
|
||||||
|
- nginx-proxy-vhost:/etc/nginx/vhost.d
|
||||||
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
nginx-proxy-certs:
|
||||||
|
nginx-proxy-html:
|
||||||
|
nginx-proxy-vhost:
|
||||||
Loading…
Reference in a new issue