Giter VIP home page Giter VIP logo

full-stack-proxy-nginx-rancher-for-everyone-with-docker-compose's Introduction

If You want to install Rancher at short time;

Full stack Proxy Nginx Rancher:

rancher     kubernetes     docker     nginx     Bash     letsencrypt

With this project you can quickly run the following:

For certbot (letsencrypt) certificate:

IPv4/IPv6 Firewall

Create rules to open ports to the internet, or to a specific IPv4 address or range.

  • http: 80
  • https: 443

Contents:

Automatic

Exec install shell script for auto installation and configuration

download with

git clone https://github.com/damalis/full-stack-proxy-nginx-rancher-for-everyone-with-docker-compose.git

Open a terminal and cd to the folder in which docker-compose.yml is saved and run:

cd full-stack-proxy-nginx-rancher-for-everyone-with-docker-compose
chmod +x install.sh
./install.sh

Requirements

Make sure you have the latest versions of Docker and Docker Compose installed on your machine.

These CPU and memory requirements apply to a host with a single-node installation of Rancher

Deployment Size Clusters Nodes vCPUs RAM
Small Up to 5 Up to 50 1 4 GB
Medium Up to 15 Up to 200 2 8 GB

Clone this repository or copy the files from this repository into a new folder.

Make sure to add your user to the docker group.

Manual

Configuration

download with

git clone https://github.com/damalis/full-stack-proxy-nginx-rancher-for-everyone-with-docker-compose.git

Open a terminal and cd to the folder in which docker-compose.yml is saved and run:

cd full-stack-proxy-nginx-rancher-for-everyone-with-docker-compose

Copy the example environment into .env

cp env.example .env

Edit the .env file to change values of LOCAL_TIMEZONE, DOMAIN_NAME, DIRECTORY_PATH and LETSENCRYPT_EMAIL.

LOCAL_TIMEZONE=to see local timezones

DIRECTORY_PATH=pwd at command line

Installation

Firstly: Create and start containers

docker compose up -d

then reloading for proxy ssl configuration

docker container restart proxy

The containers are now built and running. You should be able to access the rancher installation with the configured IP in the browser address. https://example.com.

For convenience you may add a new entry into your hosts file.

Usage

You could manage docker containers without command line with portainer.

Show both running and stopped containers

The docker ps command only shows running containers by default. To see all containers, use the -a (or --all) flag:

docker ps -a

Starting containers

You can start the containers with the up command in daemon mode (by adding -d as an argument) or by using the start command:

docker compose start

Stopping containers

docker compose stop

Removing containers

To stop and remove all the containers use the down command:

docker compose down

to remove portainer and the other containers

docker rm -f $(docker ps -a -q)

Use -v if you need to remove the database volume which is used to persist the database:

docker compose down -v

to remove external certbot-etc and portainer and the other volumes

docker volume rm $(docker volume ls -q)

to remove portainer and the other images

docker rmi $(docker image ls -q)

Project from existing source

Copy all files into a new directory:

You can now use the up command:

docker compose up -d

Docker run reference

https://docs.docker.com/engine/reference/run/

Proxy

Proxying is typically used to distribute the load among several servers, seamlessly show content from different websites, or pass requests for processing to application servers over protocols other than HTTP.

add or remove code in the ./proxy/templates/proxy.conf.template file for custom proxy configurations

https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/

full-stack-proxy-nginx-rancher-for-everyone-with-docker-compose's People

Contributors

damalis avatar

Watchers

 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.