six_docker_001

This commit is contained in:
doudou201703
2026-08-02 14:18:15 +08:00
commit dcd2b4c5fb
21 changed files with 480 additions and 0 deletions
+73
View File
@@ -0,0 +1,73 @@
#version: "3.7"
name: "xiao_demo" # 项目名称
services:
mac_redis: # redis镜像
image: redis
container_name: mac_redis
restart: unless-stopped
ports:
- "6379:6379"
command:
- --requirepass "com792282"
volumes:
- redisData:/data
networks:
- xiao_network
mac_sixfrpc:
image: snowdreamtech/frpc
container_name: mac_sixfrpc
restart: unless-stopped
volumes:
- /Users/xiao/IdeaProjects/dockerCompose/本地服务/sixfrpc.toml:/etc/frp/frpc.toml
environment:
- FRP_CONFIG_FILE=/etc/frp/frpc.toml
network_mode: host
mac_postgres_six_demo: # postgres镜像
image: postgres
container_name: mac_postgres_six_demo
restart: unless-stopped
environment:
POSTGRES_USER: "xiaozizi"
POSTGRES_DB: "six_demo"
POSTGRES_PASSWORD: "com792282"
POSTGRESQL_TIMEZONE: "Asia/Shanghai"
ports:
- "5435:5432"
volumes:
- mac_six_demo_postgres:/var/lib/postgresql
networks:
- xiao_network
mac_postgres_six: # postgres镜像
image: postgres
container_name: mac_postgres_six
restart: unless-stopped
environment:
POSTGRES_USER: "xiaozizi"
POSTGRES_DB: "six"
POSTGRES_PASSWORD: "com792282"
POSTGRESQL_TIMEZONE: "Asia/Shanghai"
ports:
- "5433:5432"
volumes:
- postgres_six:/var/lib/postgresql/
networks:
- xiao_network
networks:
xiao_network:
# 添加一句注释看看能不能自动上传的
volumes:
postgresData:
redisData:
mac_postgres_data:
mac_six_demo_postgres:
postgres_six_demo:
postgres_six:
+44
View File
@@ -0,0 +1,44 @@
serverAddr = "106.54.2.188"
serverPort = 7000
# 认证方式和token,必须与frps配置一致
auth.method = "token"
auth.token = "sixsixgousite"
#[[proxies]]
#name = "test_htts2http"
#type = "http"
#localIP = "127.0.0.1"
#localPort = 8000 # 这里的端口号: 就是监听的本地服务的端口号
#customDomains = ["six.sixgou.com"]
#
[[proxies]]
name = "vite-vue"
type = "http"
localIP = "127.0.0.1" #localIP = "host.docker.internal"
localPort = 8000 # 这里的端口号: 就是监听的本地服务的端口号
customDomains = ["xiao.sixgou.com"]
# 这里监听的是: h5支付的审核接口
#[[proxies]]
#name = "six-gou"
#type = "http"
#localIP = "127.0.0.1" #localIP = "host.docker.internal"
#localPort = 8000 # 这里的端口号: 就是监听的本地服务的端口号
#customDomains = ["sixgou.com"]
#
# 在这里监听的是 服务号开发的端口
[[proxies]]
name = "wechat-django"
type = "http"
localIP = "127.0.0.1" #localIP = "host.docker.internal"
localPort = 3000 # 这里的端口号: 就是监听的本地服务的端口号
customDomains = ["wechat.sixgou.com"]
+17
View File
@@ -0,0 +1,17 @@
serverAddr = "122.152.209.38"
serverPort = 7000
# 认证方式和token,必须与frps配置一致
auth.method = "token"
auth.token = "sixsixgousite"
[[proxies]]
name = "yanhua"
type = "https"
customDomains = ["django.jpyanhua.site"]
[proxies.plugin]
type = "https2http"
localAddr = "host.docker.internal:8001"
crtPath = "/etc/frp/yanhuassl/django.jpyanhua.site_bundle.crt"
keyPath = "/etc/frp/yanhuassl/django.jpyanhua.site.key"
hostHeaderRewrite = "127.0.0.1"
requestHeaders.set.x-from-where = "frp"