This commit is contained in:
Imran Remtulla
2025-10-25 05:53:52 -04:00
parent 603bdd12b5
commit 0226c4406c
4 changed files with 52 additions and 3 deletions

23
frpc.toml Normal file
View File

@@ -0,0 +1,23 @@
serverAddr = "137.220.35.151"
serverPort = 7000
auth.additionalScopes = ["HeartBeats", "NewWorkConns"]
auth.method = "token"
auth.token = "mysupersecrettoken"
[[proxies]]
name = "http"
type = "tcp"
localIP = "127.0.0.1"
localPort = 80
remotePort = 80
transport.useEncryption = true
transport.proxyProtocolVersion = "v2"
[[proxies]]
name = "https"
type = "tcp"
localIP = "127.0.0.1"
localPort = 443
remotePort = 443
transport.useEncryption = true
transport.proxyProtocolVersion = "v2"

4
frps.toml Normal file
View File

@@ -0,0 +1,4 @@
bindPort = 7000
auth.additionalScopes = ["HeartBeats", "NewWorkConns"]
auth.method = "token"
auth.token = "mysupersecrettoken"

10
proxy.docker-compose.yaml Normal file
View File

@@ -0,0 +1,10 @@
services:
frps: # https://github.com/fatedier/frp
image: fatedier/frps:v0.65.0
container_name: frps
restart: always
volumes:
- ./frps.toml:/frps.toml
network_mode: host
command: "-c /frps.toml"

View File

@@ -1,5 +1,14 @@
services:
frpc: # https://github.com/fatedier/frp
image: fatedier/frpc:v0.65.0
container_name: frpc
restart: always
volumes:
- ./frpc.toml:/frpc.toml
network_mode: host
command: "-c /frpc.toml"
traefik: # https://github.com/traefik/traefik
image: traefik:latest
container_name: traefik
@@ -19,14 +28,16 @@ services:
- "--entrypoints.web.http.redirections.entrypoint.permanent=true"
- "--entryPoints.websecure=true"
- "--entryPoints.websecure.address=:443"
- "--entryPoints.websecure.proxyProtocol.trustedIPs=172.19.0.1/32"
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- traefik_acme:/acme
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(`traefik.imranr.cloud`)" # Add to /etc/hosts
- "traefik.http.routers.api.rule=Host(`traefik.imranr.cloud`)"
- "traefik.http.routers.api.entryPoints=websecure"
- "traefik.http.routers.api.service=api@internal"
- "traefik.http.routers.api.tls=true"
@@ -48,13 +59,14 @@ services:
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.filebrowser.rule=Host(`files.imranr.cloud`)" # Add to /etc/hosts
- "traefik.http.routers.filebrowser.rule=Host(`files.imranr.cloud`)"
- "traefik.http.routers.filebrowser.entrypoints=websecure"
- "traefik.http.routers.filebrowser.tls=true"
- "traefik.http.services.filebrowser.loadbalancer.server.port=80"
volumes:
filebrowser_db:
traefik_acme:
networks:
traefik: