infra check 1
This commit is contained in:
parent
4dea5997f6
commit
d07d74ca39
7 changed files with 58 additions and 69 deletions
24
homepage/compose.yaml
Normal file
24
homepage/compose.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
services:
|
||||
homepage:
|
||||
image: ghcr.io/gethomepage/homepage:latest
|
||||
container_name: homepage
|
||||
user: "1000:1003"
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
dns:
|
||||
- 10.100.20.1
|
||||
volumes:
|
||||
- /srv/infra-int01/config/homepage:/app/config
|
||||
- /srv/infra-int01/config/homepage/icons:/app/public/icons
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
environment:
|
||||
HOMEPAGE_ALLOWED_HOSTS: "homepage.theboxhub.ch,localhost,127.0.0.1"
|
||||
extra_hosts:
|
||||
- "host-loopback:host-gateway"
|
||||
networks:
|
||||
- proxy-nw
|
||||
|
||||
networks:
|
||||
proxy-nw:
|
||||
external: true
|
||||
3
nginx-proxy/README.md
Normal file
3
nginx-proxy/README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
NPM
|
||||
|
||||
Howto
|
||||
31
nginx-proxy/compose.yaml
Normal file
31
nginx-proxy/compose.yaml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
services:
|
||||
nginx-proxy:
|
||||
image: jc21/nginx-proxy-manager:latest
|
||||
container_name: nginx-proxy
|
||||
restart: unless-stopped
|
||||
entrypoint: /bin/sh -c "update-ca-certificates && exec /init"
|
||||
extra_hosts:
|
||||
- "theboxhub.ch:127.0.0.1"
|
||||
dns:
|
||||
- 10.100.20.1
|
||||
- 8.8.8.8
|
||||
ports:
|
||||
- "80:80"
|
||||
- "81:81"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- /srv/infra-int01/data/nginx-proxy/data:/data
|
||||
- /srv/infra-int01/data/nginx-proxy/letsencrypt:/etc/letsencrypt
|
||||
- /srv/infra-int01/config/certs/thebox-root.crt:/usr/local/share/ca-certificates/thebox-root.crt:ro
|
||||
networks:
|
||||
- proxy-nw
|
||||
healthcheck:
|
||||
test: ["CMD", "/usr/bin/check-health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
networks:
|
||||
proxy-nw:
|
||||
external: true
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
# infra-int01
|
||||
|
||||
Basis-Setup fuer den internen nginx auf `infra-int01`.
|
||||
|
||||
## Ziel
|
||||
|
||||
Diese Instanz dient als schlanker interner nginx auf `infra-int01`.
|
||||
Der erste Stand liefert nur eine statische Testseite aus.
|
||||
Reverse-Proxy-Eintraege werden spaeter separat ergaenzt.
|
||||
|
||||
## Struktur
|
||||
|
||||
```text
|
||||
infra-int01/
|
||||
├── compose.yaml
|
||||
├── README.md
|
||||
├── nginx/
|
||||
│ ├── conf.d/
|
||||
│ │ └── default.conf
|
||||
│ ├── html/
|
||||
│ │ └── index.html
|
||||
│ └── proxy/
|
||||
│ └── README.md
|
||||
|
||||
|
||||
Voraussetzungen
|
||||
|
||||
Auf infra-int01 muessen vorhanden sein:
|
||||
|
||||
Docker
|
||||
Docker Compose Plugin
|
||||
geklontes Repo unter /srv/infra-int01/repo/infra-int01
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
services:
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
container_name: nginx
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- /srv/infra-int01/repo/infra-int01/nginx/conf.d:/etc/nginx/conf.d:ro
|
||||
- /srv/infra-int01/repo/infra-int01/nginx/html:/usr/share/nginx/html:ro
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1/ || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
server {
|
||||
listen 80 default_server;
|
||||
server_name _;
|
||||
|
||||
access_log /dev/stdout;
|
||||
error_log /dev/stderr warn;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>infra-int01 nginx</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>nginx auf infra-int01 läuft</h1>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue