add nginx
This commit is contained in:
21
nginx-webserver/docker-compose.yml
Normal file
21
nginx-webserver/docker-compose.yml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
version: '3.7'
|
||||||
|
services:
|
||||||
|
nginx:
|
||||||
|
image: nginx:latest
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
networks:
|
||||||
|
- traefik_web
|
||||||
|
- default
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.docker.network=traefik_web
|
||||||
|
- traefik.http.routers.${ROUTER_NAME}-router.entrypoints=${ENTRYPOINT}
|
||||||
|
- traefik.http.routers.${ROUTER_NAME}-router.rule=Host(`${APP_HOST}`)
|
||||||
|
- traefik.http.routers.${ROUTER_NAME}-router.tls=true
|
||||||
|
volumes:
|
||||||
|
db_data:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik_web:
|
||||||
|
external: true
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
"value": "web"
|
"value": "web"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "Https et Httpw",
|
"text": "Https et http",
|
||||||
"value": "web,websecure",
|
"value": "web,websecure",
|
||||||
"default": true
|
"default": true
|
||||||
|
|
||||||
@@ -227,7 +227,7 @@
|
|||||||
"value": "web"
|
"value": "web"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "Https et Httpw",
|
"text": "Https et http",
|
||||||
"value": "web,websecure",
|
"value": "web,websecure",
|
||||||
"default": true
|
"default": true
|
||||||
|
|
||||||
@@ -338,6 +338,61 @@
|
|||||||
"description": "Exemple: pour support@domain.fr mettre \"support\"."
|
"description": "Exemple: pour support@domain.fr mettre \"support\"."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": 3,
|
||||||
|
"title": "Nginx",
|
||||||
|
"description": "WebServer",
|
||||||
|
"categories": ["web"],
|
||||||
|
"platform": "linux",
|
||||||
|
"logo": "https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Nginx_logo.svg/512px-Nginx_logo.svg.png",
|
||||||
|
"repository": {
|
||||||
|
"url": "https://git.baraise.fr/Aguay/portainer",
|
||||||
|
"stackfile": "nginx-webserver/docker-compose.yml"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
{
|
||||||
|
"container": "/etc/nginx"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"container": "/usr/share/nginx/html"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"env": [
|
||||||
|
{
|
||||||
|
"name": "ENTRYPOINT",
|
||||||
|
"label": "Entrypoint pour le http et le https",
|
||||||
|
"description": "entrypoint traefik",
|
||||||
|
"select": [
|
||||||
|
{
|
||||||
|
"text": "Voulez vous du https uniquement?",
|
||||||
|
"value": "websecure"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "Que du htttp?",
|
||||||
|
"value": "web"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "Https et http",
|
||||||
|
"value": "web,websecure",
|
||||||
|
"default": true
|
||||||
|
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ROUTER_NAME",
|
||||||
|
"label": "router host",
|
||||||
|
"description": "Nom du routeur pour affichage dans le dashboard traefik",
|
||||||
|
"default": "nextcloud"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "APP_HOST",
|
||||||
|
"label": "Url app host",
|
||||||
|
"description": "Nom de domaine pour l'accès à l'application",
|
||||||
|
"default": "nextcloud.traefik.me"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user