Giter VIP home page Giter VIP logo

simple-containers-mgmt's Introduction

Simple Containers Management

A simple setup I use to manage docker containers in web application context. It includes nginx-proxy-manager and portainer.

Principles

  • nginx-proxy-manager will be the only service with open ports (80 and 443) on local host
  • All the containers must use the nxpm network and don't need to publish ports on local host
# Example of a docker-compose.yml file with a service joining the existing nxpm network 
version: "3.8"

services:
  myservice:
    image: someimage
    networks:
      - nxpm

networks:
  nxpm:
    external: true

Run the stack

  • Change database passwords in .env and production.json
  • You might want to change images version in .env
  • Bring the containers up :
$ docker-compose up -d
  • Connect to nginx-proxy-manager administration interface on port 81. By default, this interface is only exposed locally on the machine running the docker containers. To remotely accessing the admin interface use ssh tunneling (e.g. ssh -L 8181:127.0.0.1:81 user@remote_host) and access the interface on your local machine (e.g. http://localhost:8181)
  • Log in to the admin interface with default user/password ([email protected]/changeme) and update the admin user and password
  • You might want to create in nginx-proxy-manager a proxy host for its admin interface (Forward Hostname : nxpm / Forward Port : 81) and generate a Let's Encrypt certificate for it.
  • Create a proxy host for portainer (Forward Hostname : portainer / Forward Port : 9000) and generate a Let's Encrypt certificate for it.
  • You're good to go ! ๐Ÿš€

Documentation

Todo List

  • Add container supervision solution

simple-containers-mgmt's People

Contributors

esgn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.