mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4212] Variable substitution for TOML config in Docker Compose - how to make it happen? #3316
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3316
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kenya-West on GitHub (May 11, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4212
Bug Description
I try to substitute variables set in
frps.toml.templatefile for dockerized frps instance and make Docker to producefrps.tomlfile in mounted dir:docker-compose.yml:
.env:
config-frps/frps.toml.template
frps(or Docker itself) does not substitute variables and does not producefrps.tomlfile inside the container:How to force Docker to create
frps.tomlfile?frpc Version
0.56.1
frps Version
0.56.1
System Architecture
linux/amd64
Configurations
Logs
Steps to reproduce
frps;.envfile;frps.toml;docker compose up -d frpsthe instance;Affected area
@Kenya-West commented on GitHub (May 12, 2024):
Since I forgot to rename file from
frps.tomltofrps.toml.templateand in result got other kind of error message, whole body of the question changed.P. S. With NGINX, env substitution works. What's wrong with FRP?
@Kenya-West commented on GitHub (May 12, 2024):
UPD: Found out that environment variables substitution should be implemented on developer's side.
The tool
envsubstshould be in Docker's image and executed during image building process.Which means I need to go directly to snowdreamtech/frp and post an issue there.
Sorry for posting irrelevant problem here. This issue can now be closed.