-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
243 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SERVER_PORT= | ||
PASSWORD= | ||
METHOD= | ||
PROTOCOL= | ||
PROTOCOL_PARAM= | ||
OBFS= | ||
OBFS_PARAM= | ||
DNS_IPV6= | ||
TZ=Asia/Shanghai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
services: | ||
debian11-python-shadowsocksr: | ||
image: "eric2369/debian11-python-shadowsocksr:latest" | ||
container_name: "debian11-python-shadowsocksr-container" | ||
ports: | ||
- "${SERVER_PORT}:${SERVER_PORT}" | ||
network_mode: "host" | ||
restart: "unless-stopped" | ||
environment: | ||
- "SERVER_PORT=${SERVER_PORT}" | ||
- "PASSWORD=${PASSWORD}" | ||
- "METHOD=${METHOD}" | ||
- "PROTOCOL=${PROTOCOL}" | ||
- "PROTOCOL_PARAM=${PROTOCOL_PARAM}" | ||
- "OBFS=${OBFS}" | ||
- "OBFS_PARAM=${OBFS_PARAM}" | ||
- "DNS_IPV6=${DNS_IPV6}" | ||
- "TZ=${TZ}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DOMAIN= | ||
PASSWORD= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
services: | ||
debian12-codeserver: | ||
image: "eric2369/debian12-codeserver:latest" | ||
container_name: "debian12-codeserver-container" | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.http.services.debian12-codeserver.loadbalancer.server.port=8080" | ||
- "traefik.http.routers.debian12-codeserver.service=debian12-codeserver" | ||
- "traefik.http.routers.debian12-codeserver.rule=Host(`${DOMAIN}`)" | ||
- "traefik.http.routers.debian12-codeserver.entrypoints=websecure" | ||
- "traefik.http.routers.debian12-codeserver.tls.certresolver=leresolver" | ||
volumes: | ||
- "debian12-codeserver-volume:/home/coder/project" | ||
networks: | ||
- "traefik-network" | ||
restart: "unless-stopped" | ||
environment: | ||
- "PASSWORD=${PASSWORD}" | ||
|
||
volumes: | ||
debian12-codeserver-volume: | ||
name: "debian12-codeserver-volume" | ||
|
||
networks: | ||
traefik-network: | ||
external: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ RUN set -eux; \ | |
RUN npm install [email protected] [email protected] @salesforce/[email protected] -g \ | ||
&& npm cache clean --force | ||
|
||
RUN echo y | sf plugins install sfdx-git-delta@5.47.0 \ | ||
RUN echo y | sf plugins install sfdx-git-delta@5.49.0 \ | ||
&& npm cache clean --force | ||
|
||
RUN apt-get update \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ RUN set -eux; \ | |
RUN npm install [email protected] [email protected] @salesforce/[email protected] -g \ | ||
&& npm cache clean --force | ||
|
||
RUN echo y | sf plugins install sfdx-git-delta@5.47.0 \ | ||
RUN echo y | sf plugins install sfdx-git-delta@5.49.0 \ | ||
&& npm cache clean --force | ||
|
||
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ADDR= | ||
USER= | ||
PASS= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
services: | ||
debian12-serverstatusrust-client: | ||
image: "eric2369/debian12-serverstatusrust-client:latest" | ||
container_name: "debian12-serverstatusrust-client-container" | ||
network_mode: "host" | ||
restart: "unless-stopped" | ||
environment: | ||
- "ADDR=${ADDR}" | ||
- "USER=${USER}" | ||
- "PASS=${PASS}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DOMAIN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
services: | ||
debian12-serverstatusrust-server: | ||
image: "eric2369/debian12-serverstatusrust-server:latest" | ||
container_name: "debian12-serverstatusrust-server-container" | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.http.services.debian12-serverstatusrust-server.loadbalancer.server.port=8080" | ||
- "traefik.http.routers.debian12-serverstatusrust-server.service=debian12-serverstatusrust-server" | ||
- "traefik.http.routers.debian12-serverstatusrust-server.rule=Host(`${DOMAIN}`)" | ||
- "traefik.http.routers.debian12-serverstatusrust-server.entrypoints=websecure" | ||
- "traefik.http.routers.debian12-serverstatusrust-server.tls.certresolver=leresolver" | ||
volumes: | ||
- "debian12-serverstatusrust-server-volume:/home/serverstatus/config" | ||
networks: | ||
- "traefik-network" | ||
restart: "unless-stopped" | ||
environment: | ||
- "RUST_LOG=error,stat_server::stats=off" | ||
|
||
volumes: | ||
debian12-serverstatusrust-server-volume: | ||
name: "debian12-serverstatusrust-server-volume" | ||
|
||
networks: | ||
traefik-network: | ||
external: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
EDGE_ID= | ||
EDGE_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
services: | ||
portainer-agent: | ||
image: "portainer/agent:2.23.0" | ||
container_name: "portainer-agent-container" | ||
volumes: | ||
- "/var/run/docker.sock:/var/run/docker.sock" | ||
- "/var/lib/docker/volumes:/var/lib/docker/volumes" | ||
- "/:/host" | ||
- "portainer-agent-volume:/data" | ||
network_mode: "host" | ||
restart: "unless-stopped" | ||
environment: | ||
- "EDGE=1" | ||
- "EDGE_ID=${EDGE_ID}" | ||
- "EDGE_KEY=${EDGE_KEY}" | ||
- "EDGE_INSECURE_POLL=1" | ||
|
||
volumes: | ||
portainer-agent-volume: | ||
name: "portainer-agent-volume" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
EMAIL= | ||
DOMAIN= | ||
EDGE_DOMAIN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
version: "3.9" | ||
|
||
services: | ||
traefik: | ||
image: "traefik:3.1.6" | ||
container_name: "traefik-container" | ||
command: | ||
- "--entryPoints.web.address=:80" | ||
- "--entryPoints.websecure.address=:443" | ||
- "--providers.docker=true" | ||
- "--providers.docker.exposedByDefault=false" | ||
- "--providers.docker.endpoint=unix:///var/run/docker.sock" | ||
- "--log.level=INFO" | ||
- "--certificatesresolvers.leresolver.acme.httpchallenge=true" | ||
- "--certificatesresolvers.leresolver.acme.httpchallenge.entrypoint=web" | ||
- "--certificatesresolvers.leresolver.acme.email=${EMAIL}" | ||
- "--certificatesresolvers.leresolver.acme.storage=/traefik-volume/acme.json" | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)" | ||
- "traefik.http.routers.http-catchall.entrypoints=web" | ||
- "traefik.http.routers.http-catchall.middlewares=redirect-to-https" | ||
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https" | ||
- "traefik.http.middlewares.redirect-to-https.redirectscheme.permanent=true" | ||
volumes: | ||
- "/var/run/docker.sock:/var/run/docker.sock:ro" | ||
- "traefik-volume:/traefik-volume" | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
networks: | ||
- "traefik-network" | ||
restart: "unless-stopped" | ||
|
||
portainer-server: | ||
image: "portainer/portainer-ce:2.23.0" | ||
container_name: "portainer-server-container" | ||
command: "-H unix:///var/run/docker.sock" | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.http.services.frontend.loadbalancer.server.port=9000" | ||
- "traefik.http.routers.frontend.service=frontend" | ||
- "traefik.http.routers.frontend.rule=Host(`${DOMAIN}`)" | ||
- "traefik.http.routers.frontend.entrypoints=websecure" | ||
- "traefik.http.routers.frontend.tls.certresolver=leresolver" | ||
|
||
- "traefik.http.services.edge.loadbalancer.server.port=8000" | ||
- "traefik.http.routers.edge.service=edge" | ||
- "traefik.http.routers.edge.rule=Host(`${EDGE_DOMAIN}`)" | ||
- "traefik.http.routers.edge.entrypoints=websecure" | ||
- "traefik.http.routers.edge.tls.certresolver=leresolver" | ||
volumes: | ||
- "/var/run/docker.sock:/var/run/docker.sock" | ||
- "portainer-server-volume:/data" | ||
networks: | ||
- "traefik-network" | ||
restart: "unless-stopped" | ||
|
||
volumes: | ||
traefik-volume: | ||
name: "traefik-volume" | ||
portainer-server-volume: | ||
name: "portainer-server-volume" | ||
|
||
networks: | ||
traefik-network: | ||
name: "traefik-network" | ||
driver: "bridge" | ||
ipam: | ||
config: | ||
- subnet: "172.32.0.0/16" | ||
ip_range: "172.32.1.0/24" | ||
gateway: "172.32.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
EMAIL= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
version: "3.9" | ||
|
||
services: | ||
traefik: | ||
image: "traefik:3.1.6" | ||
container_name: "traefik-container" | ||
command: | ||
- "--entryPoints.web.address=:80" | ||
- "--entryPoints.websecure.address=:443" | ||
- "--providers.docker=true" | ||
- "--providers.docker.exposedByDefault=false" | ||
- "--providers.docker.endpoint=unix:///var/run/docker.sock" | ||
- "--log.level=INFO" | ||
- "--certificatesresolvers.leresolver.acme.httpchallenge=true" | ||
- "--certificatesresolvers.leresolver.acme.httpchallenge.entrypoint=web" | ||
- "--certificatesresolvers.leresolver.acme.email=${EMAIL}" | ||
- "--certificatesresolvers.leresolver.acme.storage=/traefik-volume/acme.json" | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)" | ||
- "traefik.http.routers.http-catchall.entrypoints=web" | ||
- "traefik.http.routers.http-catchall.middlewares=redirect-to-https" | ||
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https" | ||
- "traefik.http.middlewares.redirect-to-https.redirectscheme.permanent=true" | ||
volumes: | ||
- "/var/run/docker.sock:/var/run/docker.sock:ro" | ||
- "traefik-volume:/traefik-volume" | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
networks: | ||
- "traefik-network" | ||
restart: "unless-stopped" | ||
|
||
volumes: | ||
traefik-volume: | ||
name: "traefik-volume" | ||
|
||
networks: | ||
traefik-network: | ||
name: "traefik-network" | ||
driver: "bridge" | ||
ipam: | ||
config: | ||
- subnet: "172.32.0.0/16" | ||
ip_range: "172.32.1.0/24" | ||
gateway: "172.32.0.1" |