frp icon indicating copy to clipboard operation
frp copied to clipboard

docker 模式下 如何指定yaml配置文件

Open farrant opened this issue 1 year ago • 0 comments

Bug Description

docker 模式下 无法指定yaml配置文件,默认使用toml格式文件 是否能够提供一个更改配置文件的环境变量

frpc Version

0.54.0

frps Version

0.54.0

System Architecture

linux/amd64

Configurations

version: '3'
services:
  frps:
    image: snowdreamtech/frps:0.54.0
    container_name: frps
    restart: unless-stopped
    environment:
      TZ: Asia/Shanghai
    volumes:
      # - ./conf/frps.ini:/etc/frp/frps.ini
      - ./conf/frps.yaml:/etc/frp/frps.yaml
      - ./logs/frps.log:/etc/frp/frps.log
    network_mode: host
    command: [ "frps", "-c", "/etc/frp/frps.yaml" ]

Logs

No response

Steps to reproduce

...

Affected area

  • [ ] Docs
  • [ ] Installation
  • [ ] Performance and Scalability
  • [ ] Security
  • [ ] User Experience
  • [ ] Test and Release
  • [ ] Developer Infrastructure
  • [ ] Client Plugin
  • [ ] Server Plugin
  • [ ] Extensions
  • [ ] Others

farrant avatar Mar 08 '24 13:03 farrant