Sign inSign up

baicailin/epusdt

By baicailin

Updated over 2 years ago

Image
0

193

baicailin/epusdt repository overview

相对于原版,新增支持postgres数据库,数据表自动创建(不需要导入sql文件) docker-compose 启动参考:

version: "3"
services:
  epusdt:
    image:  baicailin/epusdt:alpine
    container_name: "epusdt"
    restart: always
    volumes:
      - ./.env.example:/app/.env
    ports:
      - "8000:8000"
    extra_hosts:
      - "host.docker.internal:host-gateway"

.env.example配置内容参考:

app_name=epusdt
#下面配置你的域名,收银台会需要
app_uri=https://dujiaoka.com
#是否开启debug,默认false
app_debug=false
#http服务监听端口
http_listen=:8000

#静态资源文件目录
static_path=/static
#缓存路径
runtime_root_path=/runtime

#日志配置
log_save_path=/logs
log_max_size=32
log_max_age=7
max_backups=3

#数据库类型,默认为mysql类型,可配置项: postgres,mysql
db_type=postgres

# mysql配置
mysql_host=127.0.0.1
mysql_port=3306
mysql_user=mysql账号
mysql_passwd=mysql密码
mysql_database=数据库
mysql_table_prefix=
mysql_max_idle_conns=10
mysql_max_open_conns=100
mysql_max_life_time=6

# postgres配置
postgres_host=127.0.0.1
postgres_port=3306
postgres_user=mysql账号
postgres_passwd=mysql密码
postgres_database=数据库
postgres_table_prefix=
postgres_max_idle_conns=10
postgres_max_open_conns=100
postgres_max_life_time=6

# redis配置
redis_host=127.0.0.1
redis_port=6379
redis_passwd=
redis_db=5
redis_pool_size=5
redis_max_retries=3
redis_idle_timeout=1000

# 消息队列配置
queue_concurrency=10
queue_level_critical=6
queue_level_default=3
queue_level_low=1

#机器人Apitoken
tg_bot_token=
#telegram代理url(大陆地区服务器可使用一台国外服务器做反代tg的url),如果运行的本来就是境外服务器,则无需填写
tg_proxy=
#管理员userid
tg_manage=

#api接口认证token
api_auth_token=

#订单过期时间(单位分钟)
order_expiration_time=10

#强制汇率(设置此参数后每笔交易将按照此汇率计算,例如:6.4)
forced_usdt_rate=

Tag summary

Content type

Image

Digest

sha256:d84243d6f

Size

11.5 MB

Last updated

over 2 years ago

docker pull baicailin/epusdt:alpine