1. 创建和进去这个目录 ```shell mkdir epusdt && cd epusdt ``` 2. 把配置文件放进去这个目录,只需要改 app_url tron_grid_api_key api_rate_url ```shell cat < env app_name=epusdt app_uri=https://dujiaoka.com log_level=info http_access_log=false sql_debug=false 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 # supported values: postgres,mysql,sqlite db_type=sqlite # sqlite primary database config sqlite_database_filename= sqlite_table_prefix= # postgres config postgres_host=127.0.0.1 postgres_port=3306 postgres_user=mysql_user postgres_passwd=mysql_password postgres_database=database_name postgres_table_prefix= postgres_max_idle_conns=10 postgres_max_open_conns=100 postgres_max_life_time=6 # mysql config mysql_host=127.0.0.1 mysql_port=3306 mysql_user=mysql_user mysql_passwd=mysql_password mysql_database=database_name mysql_table_prefix= mysql_max_idle_conns=10 mysql_max_open_conns=100 mysql_max_life_time=6 # sqlite runtime store config runtime_sqlite_filename=epusdt-runtime.db # background scheduler config queue_concurrency=10 queue_poll_interval_ms=1000 callback_retry_base_seconds=5 tg_bot_token= tg_proxy= tg_manage= api_auth_token= order_expiration_time=10 order_notice_max_retry=0 forced_usdt_rate= api_rate_url=https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/ tron_grid_api_key= EOF ``` 3. docker compose 创建 ```shell cat < docker-compose.yaml services: epusdt: image: gmwallet/epusdt:alpine restart: always build: context: . dockerfile: Dockerfile volumes: - ./env:/app/.env ports: - "8000:8000" EOF ``` 4. 运行 ```shell docker compose up -d ``` 5. 配置独角兽后台 商户密钥: http://your_domain/payments/epusdt/v1/order/create-transaction