Добавить npm.yml

This commit is contained in:
2026-04-20 11:46:19 +05:00
parent 3b88019125
commit d442c651c1

41
npm.yml Normal file
View File

@@ -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