This commit is contained in:
Your Name 2023-12-17 10:35:24 +08:00
parent 7a2df6508b
commit 7da6ea3e39
7 changed files with 62 additions and 7 deletions

View File

@ -0,0 +1,31 @@
version: "3.8"
services:
dockge:
image: louislam/dockge:1
restart: unless-stopped
# ports:
# Host Port : Container Port
# - 5001:5001
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/app/data
# If you want to use private registries, you need to share the auth file with Dockge:
# - /root/.docker/:/root/.docker
# Stacks Directory
# ⚠️ READ IT CAREFULLY. If you did it wrong, your data could end up writing into a WRONG PATH.
# ⚠️ 1. FULL path only. No relative path (MUST)
# ⚠️ 2. Left Stacks Path === Right Stacks Path (MUST)
- /root/homeinfra/docker:/root/homeinfra/docker
environment:
# Tell Dockge where is your stacks directory
- DOCKGE_STACKS_DIR=/root/homeinfra/docker
networks:
- traefik_default
networks:
traefik_default:
external: true

View File

@ -1 +0,0 @@
grafana.ini

View File

@ -1,9 +1,19 @@
version: "3"
services:
grafana:
ports:
- 3000:3000
container_name: grafana
image: grafana/grafana-enterprise:10.2.2-boringcrypto
volumns:
volumes:
- ./data/grafana.ini:/etc/grafana/grafana.ini
ports:
- 127.0.0.1:3000:3000
restart: always
networks:
- traefik_default
- net
networks:
traefik_default:
external: true
net:

View File

@ -1 +1,2 @@
docker run --rm --entrypoint "cat" grafana/grafana-enterprise:10.2.2-boringcrypto "/etc/grafana/grafana.ini" > grafana.example.ini
mkdir data
docker run --rm --entrypoint "cat" grafana/grafana-enterprise:10.2.2-boringcrypto "/etc/grafana/grafana.ini" > data/grafana.ini

View File

@ -0,0 +1 @@
public_html

View File

@ -0,0 +1,13 @@
http:
routers:
dockge:
entrypoints: websecure
rule: Host(`dockge.homeinfra.org`)
service: dockge
tls:
certresolver: cloudflare
services:
dockge:
loadbalancer:
servers:
- url: http://dockge:5001

View File

@ -2,7 +2,7 @@ http:
routers:
homepage:
entrypoints: websecure
rule: Host(`www.homeinfra.org`)
rule: Host(`www.homeinfra.org`) || Host(`homeinfra.org`)
service: homepage
tls:
certresolver: cloudflare