Skip to content

Commit

Permalink
deploy: 7bbbe67
Browse files Browse the repository at this point in the history
  • Loading branch information
MR-Addict committed Oct 8, 2023
1 parent 0c1d851 commit 252f45a
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 98 deletions.
71 changes: 23 additions & 48 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -1599,7 +1599,6 @@ <h3 id="nginx-容器模板"><a class="header" href="#nginx-容器模板">Nginx
services:
notes:
image: nginx:latest
container_name: notes
restart: unless-stopped
ports:
- 80:80
Expand All @@ -1612,20 +1611,18 @@ <h3 id="wg-easy-模板"><a class="header" href="#wg-easy-模板">wg-easy 模板<
<pre><code class="language-yml">version: &quot;3&quot;
services:
wg-easy:
environment:
- WG_HOST=[change-this]
- PASSWORD=[change-this]
- WG_DEFAULT_DNS=1.1.1.1
- WG_MTU=1420

restart: unless-stopped
image: weejewel/wg-easy
container_name: wg-easy
volumes:
- ./data:/etc/wireguard
ports:
- 51820:51820/udp
- 51821:51821/tcp
restart: unless-stopped
environment:
- WG_HOST=[change-this]
- PASSWORD=[change-this]
- WG_DEFAULT_DNS=1.1.1.1
- WG_MTU=1420
cap_add:
- NET_ADMIN
- SYS_MODULE
Expand All @@ -1638,7 +1635,6 @@ <h3 id="nextcloud-模板"><a class="header" href="#nextcloud-模板">Nextcloud

services:
nextcloud:
container_name: nextcloud-app
image: nextcloud:latest
restart: unless-stopped
ports:
Expand All @@ -1653,7 +1649,6 @@ <h3 id="nextcloud-模板"><a class="header" href="#nextcloud-模板">Nextcloud

mysql:
image: mysql:8.0
container_name: nextcloud-db
restart: unless-stopped
environment:
- MYSQL_DATABASE=nextcloud
Expand All @@ -1664,11 +1659,10 @@ <h3 id="nextcloud-模板"><a class="header" href="#nextcloud-模板">Nextcloud
- ./db:/var/lib/mysql
</code></pre>
<h3 id="adguard-模板"><a class="header" href="#adguard-模板">Adguard 模板</a></h3>
<pre><code class="language-yml">version: &quot;2&quot;
<pre><code class="language-yml">version: &quot;3&quot;
services:
adguard:
image: adguard/adguardhome
container_name: adguard
restart: unless-stopped
ports:
- 53:53/tcp
Expand All @@ -1679,11 +1673,11 @@ <h3 id="adguard-模板"><a class="header" href="#adguard-模板">Adguard 模板<
- /home/cael/projects/adguard/data/conf:/opt/adguardhome/conf
</code></pre>
<h3 id="vscode-模板"><a class="header" href="#vscode-模板">VSCode 模板</a></h3>
<pre><code class="language-yml">version: &quot;2.1&quot;
<pre><code class="language-yml">version: &quot;3&quot;
services:
ide:
image: lscr.io/linuxserver/code-server:latest
container_name: ide
restart: unless-stopped
environment:
- PUID=1538
- PGID=1538
Expand All @@ -1695,10 +1689,9 @@ <h3 id="vscode-模板"><a class="header" href="#vscode-模板">VSCode 模板</a>
- ./config:/config
ports:
- 8443:8443
restart: unless-stopped

http:
image: nginx:latest
container_name: http
restart: unless-stopped
ports:
- 5555:80
Expand All @@ -1710,7 +1703,6 @@ <h3 id="home-assistant"><a class="header" href="#home-assistant">Home Assistant<
services:
home:
image: ghcr.io/home-assistant/home-assistant:stable
container_name: home
environment:
- TZ=Asia/Shanghai
volumes:
Expand Down Expand Up @@ -2217,7 +2209,6 @@ <h2 id="一配置-docker-容器"><a class="header" href="#一配置-docker-容
services:
mosquitto:
image: eclipse-mosquitto
container_name: mosquitto
restart: unless-stopped
volumes:
- ./data/config:/mosquitto/config
Expand Down Expand Up @@ -2432,11 +2423,10 @@ <h2 id="四如何使用-cron"><a class="header" href="#四如何使用-cron">四
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="搭建-vscode-服务器"><a class="header" href="#搭建-vscode-服务器">搭建 VSCode 服务器</a></h1>
<p>配置 Dcocker 容器:</p>
<pre><code class="language-yaml">version: &quot;2.1&quot;
<pre><code class="language-yaml">version: &quot;3&quot;
services:
ide:
image: lscr.io/linuxserver/code-server:latest
container_name: ide
environment:
- PUID=1538
- PGID=1538
Expand All @@ -2449,9 +2439,9 @@ <h2 id="四如何使用-cron"><a class="header" href="#四如何使用-cron">四
ports:
- 8443:8443
restart: unless-stopped

http:
image: nginx:latest
container_name: http
restart: unless-stopped
ports:
- 5555:80
Expand Down Expand Up @@ -2481,37 +2471,28 @@ <h2 id="一释放服务器-53-端口"><a class="header" href="#一释放服务
<p>添加默认 DNS 为 1.1.1.1,同时弃用 DNS 监听端口:</p>
<pre><code>[Resolve]
DNS=1.1.1.1
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#DNSOverTLS=no
#Cache=no-negative
DNSStubListener=no
#ReadEtcHosts=yes
</code></pre>
<p>创建链接:</p>
<pre><code class="language-sh">sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
</code></pre>
<h2 id="二搭建-adguard"><a class="header" href="#二搭建-adguard">二、搭建 Adguard</a></h2>
<p>配置 docker-compose:</p>
<pre><code class="language-yaml">version: &quot;2&quot;
<pre><code class="language-yaml">version: &quot;3&quot;
services:
adguard:
image: adguard/adguardhome
container_name: adguard
restart: unless-stopped
ports:
- 53:53/tcp
- 53:53/udp
- 3000:3000/tcp
- 5353:3000/tcp
volumes:
- /home/cael/projects/adguard/data/work:/opt/adguardhome/work
- /home/cael/projects/adguard/data/conf:/opt/adguardhome/conf
- ./data/work:/opt/adguardhome/work
- ./data/conf:/opt/adguardhome/conf
</code></pre>
<p>启动 docker:</p>
<pre><code class="language-sh">sudo docker-compose up -d
<pre><code class="language-sh">docker-compose up -d
</code></pre>
<h2 id="三配置-adguard"><a class="header" href="#三配置-adguard">三、配置 Adguard</a></h2>
<h3 id="1-dns"><a class="header" href="#1-dns">1. DNS</a></h3>
Expand Down Expand Up @@ -2596,7 +2577,6 @@ <h2 id="1-配置-docker-服务器"><a class="header" href="#1-配置-docker-服
services:
pocketbase:
image: ghcr.io/muchobien/pocketbase:latest
container_name: pocketbase
restart: unless-stopped
ports:
- 8090:8090
Expand Down Expand Up @@ -2656,20 +2636,18 @@ <h2 id="三如何使用"><a class="header" href="#三如何使用">三、如何
<pre><code class="language-yaml">version: &quot;3&quot;
services:
wg-easy:
environment:
- WG_HOST=[change-this]
- PASSWORD=[change-this]
- WG_DEFAULT_DNS=1.1.1.1
- WG_MTU=1420

image: weejewel/wg-easy
container_name: wg-easy
restart: unless-stopped
volumes:
- ./data:/etc/wireguard
ports:
- 51820:51820/udp
- 51821:51821/tcp
restart: unless-stopped
environment:
- WG_HOST=[change-this]
- PASSWORD=[change-this]
- WG_DEFAULT_DNS=1.1.1.1
- WG_MTU=1420
cap_add:
- NET_ADMIN
- SYS_MODULE
Expand All @@ -2686,7 +2664,6 @@ <h2 id="一配置-docker-容器-3"><a class="header" href="#一配置-docker-容

services:
nextcloud:
container_name: nextcloud-app
image: nextcloud:latest
restart: unless-stopped
ports:
Expand All @@ -2701,7 +2678,6 @@ <h2 id="一配置-docker-容器-3"><a class="header" href="#一配置-docker-容

mysql:
image: mysql:8.0
container_name: nextcloud-db
restart: unless-stopped
environment:
- MYSQL_DATABASE=nextcloud
Expand Down Expand Up @@ -2783,7 +2759,6 @@ <h2 id="一配置-docker-容器-4"><a class="header" href="#一配置-docker-容
services:
home:
image: ghcr.io/home-assistant/home-assistant:stable
container_name: home
environment:
- TZ=Asia/Shanghai
volumes:
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

19 changes: 5 additions & 14 deletions server/adguard.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,37 +170,28 @@ <h2 id="一释放服务器-53-端口"><a class="header" href="#一释放服务
<p>添加默认 DNS 为 1.1.1.1,同时弃用 DNS 监听端口:</p>
<pre><code>[Resolve]
DNS=1.1.1.1
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#DNSOverTLS=no
#Cache=no-negative
DNSStubListener=no
#ReadEtcHosts=yes
</code></pre>
<p>创建链接:</p>
<pre><code class="language-sh">sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
</code></pre>
<h2 id="二搭建-adguard"><a class="header" href="#二搭建-adguard">二、搭建 Adguard</a></h2>
<p>配置 docker-compose:</p>
<pre><code class="language-yaml">version: &quot;2&quot;
<pre><code class="language-yaml">version: &quot;3&quot;
services:
adguard:
image: adguard/adguardhome
container_name: adguard
restart: unless-stopped
ports:
- 53:53/tcp
- 53:53/udp
- 3000:3000/tcp
- 5353:3000/tcp
volumes:
- /home/cael/projects/adguard/data/work:/opt/adguardhome/work
- /home/cael/projects/adguard/data/conf:/opt/adguardhome/conf
- ./data/work:/opt/adguardhome/work
- ./data/conf:/opt/adguardhome/conf
</code></pre>
<p>启动 docker:</p>
<pre><code class="language-sh">sudo docker-compose up -d
<pre><code class="language-sh">docker-compose up -d
</code></pre>
<h2 id="三配置-adguard"><a class="header" href="#三配置-adguard">三、配置 Adguard</a></h2>
<h3 id="1-dns"><a class="header" href="#1-dns">1. DNS</a></h3>
Expand Down
1 change: 0 additions & 1 deletion server/homeassistant.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ <h2 id="一配置-docker-容器"><a class="header" href="#一配置-docker-容
services:
home:
image: ghcr.io/home-assistant/home-assistant:stable
container_name: home
environment:
- TZ=Asia/Shanghai
volumes:
Expand Down
1 change: 0 additions & 1 deletion server/mqtt.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ <h2 id="一配置-docker-容器"><a class="header" href="#一配置-docker-容
services:
mosquitto:
image: eclipse-mosquitto
container_name: mosquitto
restart: unless-stopped
volumes:
- ./data/config:/mosquitto/config
Expand Down
2 changes: 0 additions & 2 deletions server/nextcloud.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ <h2 id="一配置-docker-容器"><a class="header" href="#一配置-docker-容

services:
nextcloud:
container_name: nextcloud-app
image: nextcloud:latest
restart: unless-stopped
ports:
Expand All @@ -171,7 +170,6 @@ <h2 id="一配置-docker-容器"><a class="header" href="#一配置-docker-容

mysql:
image: mysql:8.0
container_name: nextcloud-db
restart: unless-stopped
environment:
- MYSQL_DATABASE=nextcloud
Expand Down
1 change: 0 additions & 1 deletion server/pocketbase.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ <h2 id="1-配置-docker-服务器"><a class="header" href="#1-配置-docker-服
services:
pocketbase:
image: ghcr.io/muchobien/pocketbase:latest
container_name: pocketbase
restart: unless-stopped
ports:
- 8090:8090
Expand Down
5 changes: 2 additions & 3 deletions server/vscode.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,10 @@ <h1 class="menu-title">我的笔记</h1>
<main>
<h1 id="搭建-vscode-服务器"><a class="header" href="#搭建-vscode-服务器">搭建 VSCode 服务器</a></h1>
<p>配置 Dcocker 容器:</p>
<pre><code class="language-yaml">version: &quot;2.1&quot;
<pre><code class="language-yaml">version: &quot;3&quot;
services:
ide:
image: lscr.io/linuxserver/code-server:latest
container_name: ide
environment:
- PUID=1538
- PGID=1538
Expand All @@ -169,9 +168,9 @@ <h1 id="搭建-vscode-服务器"><a class="header" href="#搭建-vscode-服务
ports:
- 8443:8443
restart: unless-stopped

http:
image: nginx:latest
container_name: http
restart: unless-stopped
ports:
- 5555:80
Expand Down
14 changes: 6 additions & 8 deletions server/wireguard.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,20 +155,18 @@ <h1 id="搭建-wireguard-服务器"><a class="header" href="#搭建-wireguard-
<pre><code class="language-yaml">version: &quot;3&quot;
services:
wg-easy:
environment:
- WG_HOST=[change-this]
- PASSWORD=[change-this]
- WG_DEFAULT_DNS=1.1.1.1
- WG_MTU=1420

image: weejewel/wg-easy
container_name: wg-easy
restart: unless-stopped
volumes:
- ./data:/etc/wireguard
ports:
- 51820:51820/udp
- 51821:51821/tcp
restart: unless-stopped
environment:
- WG_HOST=[change-this]
- PASSWORD=[change-this]
- WG_DEFAULT_DNS=1.1.1.1
- WG_MTU=1420
cap_add:
- NET_ADMIN
- SYS_MODULE
Expand Down
Loading

0 comments on commit 252f45a

Please sign in to comment.