You've already forked nginx
Compare commits
3 Commits
1.0.0
...
production
Author | SHA1 | Date | |
---|---|---|---|
99ae0665a6 | |||
2646f4fa2f | |||
0158f56beb |
@@ -1,2 +1,2 @@
|
|||||||
# Base App Deployment
|
# Nginx Deployment
|
||||||
This is the base on which (almost) every deployment is sort-of-based on.
|
Data directory inside container: /var/www/html
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
services:
|
services:
|
||||||
app:
|
nginx:
|
||||||
|
image: nginx:${NGINX_VERSION}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
### Section Træfik
|
### Section Træfik
|
||||||
@@ -22,11 +23,15 @@ services:
|
|||||||
# specify a service so a custom port can be used
|
# specify a service so a custom port can be used
|
||||||
- traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=${TRAEFIK_SERVICE_PORT}
|
- traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=${TRAEFIK_SERVICE_PORT}
|
||||||
### Section Diun
|
### Section Diun
|
||||||
- diun.enable=${DIUN_ENABLE}
|
- diun.enable=${DIUN_NGINX_ENABLE}
|
||||||
- diun.watch_repo=${DIUN_WATCHREPO}
|
- diun.watch_repo=${DIUN_NGINX_WATCHREPO}
|
||||||
- diun.sort_tags=${DIUN_SORTALGO}
|
- diun.sort_tags=${DIUN_NGINX_SORTALGO}
|
||||||
- diun.include_tags=${DIUN_INCLUDE}
|
- diun.include_tags=${DIUN_NGINX_INCLUDE}
|
||||||
- diun.exclude_tags=${DIUN_EXCLUDE}
|
- diun.exclude_tags=${DIUN_NGINX_EXCLUDE}
|
||||||
|
volumes:
|
||||||
|
- ${NGINX_CONFIG}:/etc/nginx/nginx.conf
|
||||||
|
- ${NGINX_SITECONFIG}:/etc/nginx/conf.d/default.conf
|
||||||
|
- ${NGINX_DATA}:/var/www/html
|
||||||
networks:
|
networks:
|
||||||
- traefik
|
- traefik
|
||||||
|
|
||||||
|
16
env.example
16
env.example
@@ -11,8 +11,14 @@ TRAEFIK_HTTP_MIDDLEWARES=http-to-https
|
|||||||
TRAEFIK_HTTPS_MIDDLEWARES=hsts
|
TRAEFIK_HTTPS_MIDDLEWARES=hsts
|
||||||
|
|
||||||
# Diun
|
# Diun
|
||||||
DIUN_ENABLE=true
|
DIUN_NGINX_ENABLE=true
|
||||||
DIUN_WATCHREPO=true
|
DIUN_NGINX_WATCHREPO=true
|
||||||
DIUN_SORTALGO=semver
|
DIUN_NGINX_SORTALGO=semver
|
||||||
DIUN_INCLUDE=
|
DIUN_NGINX_INCLUDE=[0-9]\.[0-9]\.[0-9]-alpine
|
||||||
DIUN_EXCLUDE=
|
DIUN_NGINX_EXCLUDE=
|
||||||
|
|
||||||
|
# Nginx
|
||||||
|
NGINX_VERSION=1.22.0-alpine
|
||||||
|
NGINX_DATA=./data/httpdocs
|
||||||
|
NGINX_CONFIG=./data/nginx.conf
|
||||||
|
NGINX_SITECONFIG=./data/site.conf
|
||||||
|
Reference in New Issue
Block a user