Skip to content

Instantly share code, notes, and snippets.

@DennisLoska
Created November 10, 2020 19:10
Show Gist options
  • Save DennisLoska/66d1a142107ae9a19baf1960c6b60935 to your computer and use it in GitHub Desktop.
Save DennisLoska/66d1a142107ae9a19baf1960c6b60935 to your computer and use it in GitHub Desktop.
Nginx Proxy Manager for RPI4
version: "3"
services:
app:
image: jc21/nginx-proxy-manager:2
restart: always
ports:
# Public HTTP Port:
- '80:80'
# Public HTTPS Port:
- '443:443'
# Admin Web Port:
- '81:81'
environment:
# Uncomment this if IPv6 is not enabled on your host
DISABLE_IPV6: 'true'
volumes:
# Make sure this config.json file exists as per instructions above:
- ./config.json:/app/config/production.json
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
depends_on:
- db
db:
image: webhippie/mariadb:latest
restart: always
environment:
MARIADB_ROOT_PASSWORD: 'password'
MARIADB_DATABASE: 'proxydb'
MARIADB_USERNAME: 'npm'
MARIADB_PASSWORD: 'password'
volumes:
- ./data/mysql:/var/lib/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment