[GH-ISSUE #4048] docker 模式下 如何指定yaml配置文件 #3202

Closed
opened 2026-05-05 14:04:12 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @farrant on GitHub (Mar 8, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4048

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
Originally created by @farrant on GitHub (Mar 8, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4048 ### Bug Description docker 模式下 无法指定yaml配置文件,默认使用toml格式文件 是否能够提供一个更改配置文件的环境变量 ### frpc Version 0.54.0 ### frps Version 0.54.0 ### System Architecture linux/amd64 ### Configurations ~~~yaml 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 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:04:12 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Mar 30, 2024):

Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:2027845313 --> @github-actions[bot] commented on GitHub (Mar 30, 2024): Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3202
No description provided.