Skip to content

WindoC/nginx-npm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx

nginx prepare for working with Nginx Proxy Manager (NPM) together.

debug

docker build -t nginx-npm .

# test run
docker run -it --rm nginx-npm

Stack config

version: "3.7"

volumes:

  data:

  letsencrypt:

networks:

  host:
    external:
      name: "host"

services:

  manager:
    image: jc21/nginx-proxy-manager:latest
    ports:
     - '81:81'
    environment:
      TZ: Asia/Hong_Kong
    volumes:
      - data:/data
      - letsencrypt:/etc/letsencrypt
    deploy:
      mode: replicated
      replicas: 1
      restart_policy:
        condition: on-failure
    logging:
      options:
        max-size: "10m"
        max-file: "3"

  worker:
    image: windoac/nginx-npm:latest
    networks:
      - host
    environment:
      TZ: Asia/Hong_Kong
    volumes:
      - data:/data
      - letsencrypt:/etc/letsencrypt
    deploy:
      #mode: global
      mode: replicated
      replicas: 1
      restart_policy:
        condition: on-failure
    logging:
      options:
        max-size: "10m"
        max-file: "3"

About

nginx prepare for working with Nginx Proxy Manager (NPM) together.

Topics

Resources

Stars

Watchers

Forks

Packages