Files
Dev/npm.yml
2026-04-20 11:46:19 +05:00

41 lines
1.3 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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