[GH-ISSUE #3875] can't use external mariadb container #2542

Open
opened 2026-02-26 07:35:57 +03:00 by kerem · 2 comments
Owner

Originally created by @bckelley on GitHub (Jul 15, 2024).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3875

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug

mapping the jc21/nginx-proxy-manager to my mariadb container still results in sqlite file being created

Nginx Proxy Manager Version

docker.io/jc21/nginx-proxy-manager:latest

To Reproduce

networks:
nginx-proxy:
driver: bridge
name: nginx-proxy
mariadb:
external: true
nextcloud:
external: true

services:
app:
image: docker.io/jc21/nginx-proxy-manager:latest
container_name: nginx-proxy
restart: unless-stopped
ports:
- '80:80'
- '82:81'
- '443:443'
environment:
- PUID=1000
- PGID=1000
- DB_MYSQL_HOST=mariadb:3306
- DB_MYSQL_DATABASE="npm"
- DB_MYSQL_USER="admin"
- DB_MYSQL_PASSWORD="admin"
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
networks:
- nginx-proxy
- mariadb

Steps to reproduce the behavior:

  1. run docker compose up -d

Expected behavior

Screenshots

Operating System

Debian 12 Bookworm

Additional context

Originally created by @bckelley on GitHub (Jul 15, 2024). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3875 <!-- Are you in the right place? - If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit. - If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask. - If you think you found a bug with NPM (not Nginx, or your upstream server or MySql) then you are in the *right place.* --> **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? - Yes - Are you sure you're not using someone else's docker image? - Yes - Have you searched for similar issues (both open and closed)? - Yes **Describe the bug** <!-- A clear and concise description of what the bug is. --> mapping the jc21/nginx-proxy-manager to my mariadb container still results in sqlite file being created **Nginx Proxy Manager Version** <!-- What version of Nginx Proxy Manager is reported on the login page? --> docker.io/jc21/nginx-proxy-manager:latest **To Reproduce** networks: nginx-proxy: driver: bridge name: nginx-proxy mariadb: external: true nextcloud: external: true services: app: image: docker.io/jc21/nginx-proxy-manager:latest container_name: nginx-proxy restart: unless-stopped ports: - '80:80' - '82:81' - '443:443' environment: - PUID=1000 - PGID=1000 - DB_MYSQL_HOST=mariadb:3306 - DB_MYSQL_DATABASE="npm" - DB_MYSQL_USER="admin" - DB_MYSQL_PASSWORD="admin" volumes: - ./data:/data - ./letsencrypt:/etc/letsencrypt networks: - nginx-proxy - mariadb Steps to reproduce the behavior: 1. run docker compose up -d **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> **Operating System** <!-- Please specify if using a Rpi, Mac, orchestration tool or any other setups that might affect the reproduction of this error. --> Debian 12 Bookworm **Additional context** <!-- Add any other context about the problem here, docker version, browser version, logs if applicable to the problem. Too much info is better than too little. -->
Author
Owner

@remcoros commented on GitHub (Jul 20, 2024):

change DB_MYSQL_DATABASE to DB_MYSQL_NAME

https://github.com/NginxProxyManager/nginx-proxy-manager/blob/develop/docs/src/setup/index.md?plain=1#L76

<!-- gh-comment-id:2241058012 --> @remcoros commented on GitHub (Jul 20, 2024): change `DB_MYSQL_DATABASE` to `DB_MYSQL_NAME` https://github.com/NginxProxyManager/nginx-proxy-manager/blob/develop/docs/src/setup/index.md?plain=1#L76
Author
Owner

@github-actions[bot] commented on GitHub (Feb 15, 2025):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:2660630268 --> @github-actions[bot] commented on GitHub (Feb 15, 2025): Issue is now considered stale. If you want to keep it open, please comment :+1:
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
starred/nginx-proxy-manager-NginxProxyManager#2542
No description provided.