nginx added to portainer stack
All checks were successful
deploy / deploy (push) Successful in 3s

This commit is contained in:
2024-08-25 12:44:27 +01:00
parent d0b6f2d572
commit 327f0c1626
7 changed files with 12 additions and 18 deletions

View File

@@ -16,7 +16,6 @@ Welcome to homesrv01.dev.lan git page.
- [Telegraf](#telegraf)
- [Setup \& Update](#setup--update)
- [nginx](#nginx)
- [Setup \& Update](#setup--update-1)
- [code-server](#code-server)
- [Home Assistant](#home-assistant)
- [LMS](#lms)
@@ -128,11 +127,9 @@ maintained by ansible myInfra.docker.telegraf role
### nginx
#### Setup & Update
Using portainer stack (stack name: nginx) connected to this repo. [Docker Compose](./services/nginx/docker-compose.yaml)
``` bash
services/nginx/docker-run.sh
```
All configuration is set during docker build.
### code-server

View File

@@ -3,8 +3,8 @@ scriptPath="$(dirname "$(readlink -f "$0")")"
doWork(){
apt update -y
apt upgrade -y
$scriptPath/../services/nginx/docker-run.sh
docker image prune -f
# $scriptPath/../services/nginx/docker-run.sh
# docker image prune -f
}
doWork 2>&1 | logger -s -t "auto-update"
exit 0

View File

@@ -1,9 +1,11 @@
version: '3'
services:
nginx:
image: nginx
build:
context: ./docker
pull_policy: build
image: homesrv/nginx:latest
volumes:
- ./volumes/nginx_conf:/etc/nginx/conf.d
- etc_ssl:/etc/ssl
ports:
- 443:443

View File

@@ -1,9 +0,0 @@
#! /bin/bash
scriptPath="$(dirname "$(readlink -f "$0")")"
currentPath=$PWD
cd $scriptPath
docker compose pull
docker compose up --force-recreate --build -d
cd $currentPath

View File

@@ -0,0 +1,4 @@
FROM nginx:latest
COPY nginx.conf.d/* /etc/nginx/conf.d