50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
# https://www.howtoforge.de/anleitung/wie-man-den-nginx-proxy-manager-mit-docker-installiert-und-verwendet/
|
|
#version: "3.8"
|
|
services:
|
|
npm-app:
|
|
image: 'jc21/nginx-proxy-manager:latest'
|
|
container_name: npm-app
|
|
restart: unless-stopped
|
|
ports:
|
|
- '80:80' # Public HTTP Port
|
|
- '443:443' # Public HTTPS Port
|
|
- '81:81' # Admin Web Port
|
|
# Add any other Stream port you want to expose
|
|
# - '21:21' # FTP
|
|
environment:
|
|
DB_MYSQL_HOST: "npm-db"
|
|
DB_MYSQL_PORT: 3306
|
|
DB_MYSQL_USER: "npm"
|
|
DB_MYSQL_PASSWORD: "npm"
|
|
DB_MYSQL_NAME: "npm"
|
|
# Uncomment the line below if IPv6 is not enabled on your host
|
|
DISABLE_IPV6: 'true'
|
|
volumes:
|
|
- ./data:/data
|
|
- ./letsencrypt:/etc/letsencrypt
|
|
depends_on:
|
|
- npm-db
|
|
networks:
|
|
- npm-nw
|
|
- npm-internal
|
|
|
|
npm-db:
|
|
image: 'mariadb:latest'
|
|
container_name: npm-db
|
|
restart: unless-stopped
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: 'npm'
|
|
MYSQL_DATABASE: 'npm'
|
|
MYSQL_USER: 'npm'
|
|
MYSQL_PASSWORD: 'npm'
|
|
volumes:
|
|
- ./data_db:/var/lib/mysql
|
|
networks:
|
|
- npm-internal
|
|
|
|
networks:
|
|
npm-internal:
|
|
npm-nw:
|
|
external: true
|
|
|