Last active
April 20, 2024 21:57
-
-
Save opentaq/9abe67b34c4afe5bec77fa90970c1dad to your computer and use it in GitHub Desktop.
NGINX Proxy Manager w/ database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
app: | |
image: 'jc21/nginx-proxy-manager:latest' | |
restart: unless-stopped | |
ports: | |
# These ports are in format <host-port>:<container-port> | |
- '80:80' # Public HTTP Port | |
- '443:443' # Public HTTPS Port | |
- '8081:81' # Admin Web Port | |
environment: | |
DB_MYSQL_HOST: "db" | |
DB_MYSQL_PORT: 3306 | |
DB_MYSQL_USER: "npm" | |
DB_MYSQL_PASSWORD: "npm" | |
DB_MYSQL_NAME: "npm" | |
volumes: | |
- ./data:/data | |
- ./letsencrypt:/etc/letsencrypt | |
depends_on: | |
- db | |
db: | |
image: 'jc21/mariadb-aria:latest' | |
restart: unless-stopped | |
environment: | |
MYSQL_ROOT_PASSWORD: 'npm' | |
MYSQL_DATABASE: 'npm' | |
MYSQL_USER: 'npm' | |
MYSQL_PASSWORD: 'npm' | |
volumes: | |
- ./data/mysql:/var/lib/mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment