nginx-proxy-manager/docker-compose-hb1-postgres.yaml

53 lines
1.3 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:
TZ: "Europe/Berlin"
DB_POSTGRES_HOST: 'db'
DB_POSTGRES_PORT: '5432'
DB_POSTGRES_USER: 'npm'
DB_POSTGRES_PASSWORD: 'npmpass'
DB_POSTGRES_NAME: 'npm'
# Uncomment this if IPv6 is not enabled on your host
DISABLE_IPV6: 'true'
IP_RANGES_FETCH_ENABLED: 'false'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
depends_on:
- npm-db
networks:
- npm-nw
- npm-internal
# doesn't change the API issue
#dns:
# 172.30.30.3
npm-db:
image: postgres:latest
container_name: npm-db
restart: unless-stopped
environment:
POSTGRES_USER: 'npm'
POSTGRES_PASSWORD: 'npmpass'
POSTGRES_DB: 'npm'
volumes:
- ./postgresql:/var/lib/postgresql
networks:
- npm-internal
networks:
npm-internal:
npm-nw:
external: true