From d442c651c195d9cb51f2b5fe0536431bd9e0648a Mon Sep 17 00:00:00 2001 From: kalugin66 Date: Mon, 20 Apr 2026 11:46:19 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20npm.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- npm.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 npm.yml diff --git a/npm.yml b/npm.yml new file mode 100644 index 0000000..aa8ad36 --- /dev/null +++ b/npm.yml @@ -0,0 +1,41 @@ +version: '3.8' +services: + # --- Nginx Proxy Manager (обратный прокси + SSL) --- + npm: + image: 'jc21/nginx-proxy-manager:latest' + container_name: nginx-proxy-manager + restart: unless-stopped + ports: + - '80:80' # HTTP + - '443:443' # HTTPS + - '81:81' # Веб-интерфейс NPM (админка) + environment: + DB_MYSQL_HOST: "db" + DB_MYSQL_PORT: 3306 + DB_MYSQL_USER: "npm_user" + DB_MYSQL_PASSWORD: "your_strong_password_here1" # ⚠️ ЗАМЕНИТЕ + DB_MYSQL_NAME: "npm_db" + volumes: + - /docker/npm/data:/data + - /docker/npm/letsencrypt:/etc/letsencrypt + networks: + - applications + depends_on: + - db + # --- MariaDB для хранения настроек NPM --- + db: + image: 'jc21/mariadb-aria:latest' + container_name: npm-db + restart: unless-stopped + environment: + MYSQL_ROOT_PASSWORD: 'your_root_password_here1' # ⚠️ ЗАМЕНИТЕ + MYSQL_DATABASE: 'npm_db' + MYSQL_USER: 'npm_user' + MYSQL_PASSWORD: 'your_strong_password_here1' # ⚠️ ДОЛЖНО СОВПАДАТЬ с переменной выше + volumes: + - /docker/npm/mysql:/var/lib/mysql + networks: + - applications +networks: + applications: + external: true \ No newline at end of file