mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #1720] Invalid interpolation format when using docker-compose #1281
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1281
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 @jayjupdhig on GitHub (Jan 3, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1720
hi there
os: latest version of debian 11
mariadb: latest version 10.6 direct from mariadb apt repo
docker: latest version from docker.io apt repo
then i executed "mysql_secure_installation" and set password to 123456$ for testing purposes.
after that, i changed the file docker-compose.yml as follows:
Original from https://nginxproxymanager.com/setup/#using-mysql-mariadb-database is that here:
...but my mariadb server hostname is neither "db" nor its root password is "npm"... so i changed it.
But, after that, now i get that error when i enter ´docker-compose up -d´:
QUESTION: Why??
@jayjupdhig commented on GitHub (Jan 3, 2022):
Im sorry code format currently seems not to work on guithub with `-character...
@chaptergy commented on GitHub (Jan 3, 2022):
Docker compose wants to do variable substitution when it sees a dollar sign in a value. See the docker-compose docs. If you want a literal dollar sign
$you have to write two dollar signs instead$$.@jayjupdhig commented on GitHub (Jan 3, 2022):
OK, thank you very much.
What parameters do i need to change (as configured in "mysql_secure_installation") ?
Only the mysql/mariadb root password? Do need to create to "npm" database and its users manually or not?
@jayjupdhig commented on GitHub (Jan 3, 2022):
And: Is it correct to install MariaDB / MySQL BEFORE installing that docker thing? Or will install docker the database engine?
@jayjupdhig commented on GitHub (Jan 3, 2022):
Doesn't work...
https://github.com/jc21/nginx-proxy-manager/issues/1721
@jayjupdhig commented on GitHub (Jan 3, 2022):
There is no database, but the connection data is correctly
@jayjupdhig commented on GitHub (Jan 3, 2022):
Do i need to create database and its users manually or not?!?
@jayjupdhig commented on GitHub (Jan 3, 2022):
Can't find any hints on https://nginxproxymanager.com/setup/#running-on-raspberry-pi-arm-devices
@jayjupdhig commented on GitHub (Jan 3, 2022):
oh no i meant https://nginxproxymanager.com/setup/#using-mysql-mariadb-database
@chaptergy commented on GitHub (Jan 3, 2022):
Everywhere a
$is used in a value. Just replace it with two dollar signs.No, you don't.
If you already have a database you can use that, then you would need to change
MYSQL_environment variables to be correct for your own database. Then you also don't need thedbsection in your docker-compose. If you don't already have a database you can just keep everything as-is. The docker-compose file in the docs will start a container with a database.Then your database is either not running or not accessible from the npm docker container. Or you have provided invalid credentials or hostnames.
@jayjupdhig commented on GitHub (Jan 11, 2022):
Another question HERE: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1736