[GH-ISSUE #2356] Loss of data once NPM has restarted #1670

Closed
opened 2026-02-26 07:31:58 +03:00 by kerem · 3 comments
Owner

Originally created by @GuillaumeAuriacombe on GitHub (Nov 2, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2356

I have a big problem with NPM, every time I restart it, I lose all the data! Certificates, etc..
I am forced to configure it as soon as a reboot is done! Very annoying when you have dozens of sub-domains.

I'm not sure I'm losing anything, but I have the impression that NPM can't mount the data directly from the docker managed volume.

Has anyone had this problem before ? I can't find anything on the internet about it.
Once I reconfigured NPM, the other applications work fine.

Can you help me please ?

Originally created by @GuillaumeAuriacombe on GitHub (Nov 2, 2022). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2356 I have a big problem with NPM, every time I restart it, I lose all the data! Certificates, etc.. I am forced to configure it as soon as a reboot is done! Very annoying when you have dozens of sub-domains. I'm not sure I'm losing anything, but I have the impression that NPM can't mount the data directly from the docker managed volume. Has anyone had this problem before ? I can't find anything on the internet about it. Once I reconfigured NPM, the other applications work fine. Can you help me please ?
kerem 2026-02-26 07:31:58 +03:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@dkgof commented on GitHub (Nov 3, 2022):

I am using a docker-compose.yml:

version: "3"
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    container_name: nginx-proxy-manager
    network_mode: "host"
    environment:
      DB_MYSQL_HOST: "10.0.1.98"
      DB_MYSQL_PORT: 3306
      DB_MYSQL_USER: "npm"
      DB_MYSQL_PASSWORD: "npm"
      DB_MYSQL_NAME: "npm"
      # Uncomment this if IPv6 is not enabled on your host
      # DISABLE_IPV6: 'true'
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt

Then with directories data and letsencrypt in the same folder as the docker-compose.yml, this preserves the config between container rebuilds.

<!-- gh-comment-id:1302459911 --> @dkgof commented on GitHub (Nov 3, 2022): I am using a docker-compose.yml: ``` version: "3" services: app: image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped container_name: nginx-proxy-manager network_mode: "host" environment: DB_MYSQL_HOST: "10.0.1.98" DB_MYSQL_PORT: 3306 DB_MYSQL_USER: "npm" DB_MYSQL_PASSWORD: "npm" DB_MYSQL_NAME: "npm" # Uncomment this if IPv6 is not enabled on your host # DISABLE_IPV6: 'true' volumes: - ./data:/data - ./letsencrypt:/etc/letsencrypt ``` Then with directories `data` and `letsencrypt` in the same folder as the docker-compose.yml, this preserves the config between container rebuilds.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 6, 2024):

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

<!-- gh-comment-id:1928635606 --> @github-actions[bot] commented on GitHub (Feb 6, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Mar 22, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2744893438 --> @github-actions[bot] commented on GitHub (Mar 22, 2025): Issue was closed due to inactivity.
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#1670
No description provided.