remove resources from pdj repo
This commit is contained in:
parent
360d1f6b7e
commit
ad46181f6e
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"pve":{
|
|
||||||
"host": "192.168.11.99",
|
|
||||||
"user": "root",
|
|
||||||
"port": 22,
|
|
||||||
"local": false
|
|
||||||
},
|
|
||||||
"settings": {
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,49 +0,0 @@
|
|||||||
{
|
|
||||||
"lxc_hostname": "traefik",
|
|
||||||
"os": {
|
|
||||||
"name": "alpine",
|
|
||||||
"release": "3.17"
|
|
||||||
},
|
|
||||||
"resources": {
|
|
||||||
"cpu": 2,
|
|
||||||
"memory": 1024,
|
|
||||||
"swap": 256,
|
|
||||||
"disk": 8,
|
|
||||||
"storage": "local-lvm"
|
|
||||||
},
|
|
||||||
"network": {
|
|
||||||
"bridge": "vmbr0",
|
|
||||||
"ipv4": "dhcp",
|
|
||||||
"ipv6": "auto",
|
|
||||||
"mac": "92:A6:71:77:8E:D8",
|
|
||||||
"gateway4": "",
|
|
||||||
"gateway6": "",
|
|
||||||
"vlan": ""
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"privileged": false,
|
|
||||||
"start_on_boot": false,
|
|
||||||
"startup_order": 2,
|
|
||||||
"password": "qwertz1234",
|
|
||||||
"tags": "2-proxy+auth"
|
|
||||||
},
|
|
||||||
"creation": {
|
|
||||||
"conditions": {
|
|
||||||
"programs": ["docker"],
|
|
||||||
"folders": ["/var/data/traefik", "/var/data/config/traefik"],
|
|
||||||
"files": ["/var/data/traefik/traefik.toml", "/var/data/config/traefikv2/docker-compose.yml"]
|
|
||||||
},
|
|
||||||
"steps": [
|
|
||||||
{
|
|
||||||
"type": "script",
|
|
||||||
"local_path": "global/scripts/install-docker.sh"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "folder_copy",
|
|
||||||
"path": "data/",
|
|
||||||
"destination": "/var/"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"deploy": {}
|
|
||||||
}
|
|
@ -1,40 +0,0 @@
|
|||||||
version: "3"
|
|
||||||
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: traefik:v2.9
|
|
||||||
env_file: /var/data/config/traefikv2/traefik.env
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- "80:80" # http
|
|
||||||
- "443:443" # https
|
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
||||||
- /var/data/config/traefikv2/dyn:/dyn
|
|
||||||
- /var/data/config/traefikv2/traefik.toml:/etc/traefik/traefik.toml
|
|
||||||
- /var/data/traefik/traefik.log:/traefik.log
|
|
||||||
- /var/data/traefik/access.log:/access.log
|
|
||||||
- /var/data/traefik/acme.json:/acme.json
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
- "traefik.http.routers.api.rule=Host(`traefik.xyz.abc`)"
|
|
||||||
- "traefik.http.routers.api.entrypoints=https"
|
|
||||||
|
|
||||||
- "traefik.http.routers.api.service=api@internal"
|
|
||||||
- "traefik.http.services.dummy.loadbalancer.server.port=9999"
|
|
||||||
|
|
||||||
- "traefik.http.routers.api.tls=true"
|
|
||||||
- "traefik.http.routers.api.tls.domains[0].main=xyz.abc"
|
|
||||||
- "traefik.http.routers.api.tls.domains[0].sans=*.xyz.abc"
|
|
||||||
- "traefik.http.routers.api.tls.certresolver=cloudflare"
|
|
||||||
networks:
|
|
||||||
- traefik_public
|
|
||||||
logging:
|
|
||||||
driver: "json-file"
|
|
||||||
options:
|
|
||||||
max-size: "2m"
|
|
||||||
max-file: "2"
|
|
||||||
|
|
||||||
networks:
|
|
||||||
traefik_public:
|
|
||||||
external: true
|
|
@ -1,3 +0,0 @@
|
|||||||
# CloudFlare example
|
|
||||||
CLOUDFLARE_EMAIL=me@xyz.abc
|
|
||||||
CLOUDFLARE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
@ -1,52 +0,0 @@
|
|||||||
[global]
|
|
||||||
checkNewVersion = true
|
|
||||||
|
|
||||||
# Enable the Dashboard
|
|
||||||
[api]
|
|
||||||
dashboard = true
|
|
||||||
|
|
||||||
# Write out Traefik logs
|
|
||||||
[log]
|
|
||||||
level = "INFO"
|
|
||||||
filePath = "/traefik.log"
|
|
||||||
|
|
||||||
# [accessLog]
|
|
||||||
# filePath = "/access.log"
|
|
||||||
|
|
||||||
[entryPoints.http]
|
|
||||||
address = ":80"
|
|
||||||
# Redirect to HTTPS (why wouldn't you?)
|
|
||||||
[entryPoints.http.http.redirections.entryPoint]
|
|
||||||
to = "https"
|
|
||||||
scheme = "https"
|
|
||||||
|
|
||||||
[entryPoints.http.forwardedHeaders]
|
|
||||||
trustedIPs = ["10.0.0.0/8", "172.16.0.0/16", "192.168.0.0/16", "fc00::/7"]
|
|
||||||
|
|
||||||
[entryPoints.https]
|
|
||||||
address = ":443"
|
|
||||||
[entryPoints.https.http.tls]
|
|
||||||
certResolver = "cloudflare"
|
|
||||||
|
|
||||||
[entryPoints.https.forwardedHeaders]
|
|
||||||
trustedIPs = ["10.0.0.0/8", "172.16.0.0/16", "192.168.0.0/16", "fc00::/7"]
|
|
||||||
|
|
||||||
|
|
||||||
# Cloudflare
|
|
||||||
[certificatesResolvers.infomaniak.acme]
|
|
||||||
email = "me@xyz.abc"
|
|
||||||
storage = "acme.json"
|
|
||||||
[certificatesResolvers.infomaniak.acme.dnsChallenge]
|
|
||||||
provider = "cloudflare"
|
|
||||||
resolvers = ["1.1.1.1:53", "8.8.8.8:53"]
|
|
||||||
|
|
||||||
# Docker Traefik provider
|
|
||||||
[providers.docker]
|
|
||||||
endpoint = "unix:///var/run/docker.sock"
|
|
||||||
swarmMode = false
|
|
||||||
watch = true
|
|
||||||
exposedByDefault = false
|
|
||||||
|
|
||||||
[providers.file]
|
|
||||||
directory = "/dyn"
|
|
||||||
watch = true
|
|
@ -1 +0,0 @@
|
|||||||
{}
|
|
@ -1,54 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if which docker >/dev/null 2>&1; then
|
|
||||||
echo "Docker is installed"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "Docker is not installed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if lsb_release -a 2>/dev/null | grep -q -E "Debian"; then
|
|
||||||
echo "Running Debian"
|
|
||||||
|
|
||||||
sudo apt-get remove docker docker-engine docker.io containerd runc -y
|
|
||||||
sudo apt-get update -y
|
|
||||||
sudo apt-get install \
|
|
||||||
ca-certificates \
|
|
||||||
curl \
|
|
||||||
gnupg -y
|
|
||||||
sudo install -m 0755 -d /etc/apt/keyrings
|
|
||||||
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
|
||||||
sudo chmod a+r /etc/apt/keyrings/docker.gpg
|
|
||||||
echo \
|
|
||||||
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
|
|
||||||
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" |
|
|
||||||
sudo tee /etc/apt/sources.list.d/docker.list >/dev/null
|
|
||||||
sudo apt-get update -y
|
|
||||||
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
|
|
||||||
|
|
||||||
elif lsb_release -a 2>/dev/null | grep -q -E "Ubuntu"; then
|
|
||||||
echo "Running Ubuntu"
|
|
||||||
|
|
||||||
sudo apt-get remove docker docker-engine docker.io containerd runc -y
|
|
||||||
sudo apt-get update -y
|
|
||||||
sudo apt-get install ca-certificates curl gnupg -y
|
|
||||||
sudo install -m 0755 -d /etc/apt/keyrings
|
|
||||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
|
||||||
sudo chmod a+r /etc/apt/keyrings/docker.gpg
|
|
||||||
echo \
|
|
||||||
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
|
|
||||||
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" |
|
|
||||||
sudo tee /etc/apt/sources.list.d/docker.list >/dev/null
|
|
||||||
sudo apt-get update -y
|
|
||||||
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
|
|
||||||
|
|
||||||
elif cat /etc/os-release 2>/dev/null | grep -q -i "alpine"; then
|
|
||||||
echo "Running Alpine"
|
|
||||||
apk add docker docker-compose
|
|
||||||
addgroup username docker
|
|
||||||
rc-update add docker default
|
|
||||||
service docker start
|
|
||||||
else
|
|
||||||
echo "Unknown distribution"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user