Giter VIP home page Giter VIP logo

s-blog-ab's People

Contributors

shimguh avatar

Watchers

 avatar

s-blog-ab's Issues

auto lb by docker compose

  1. 로컬의 docker 이미지, 컨테이너를 모두 지움
  2. 본인 블로그를 hub.docker 에 push
  3. beyond-sw-camp/be01-101#43 의 compose.yml 파일의 blog 부분에 이미지 주소를 넣음
  4. 아래 명령어로 가동 ( 경로는 맞출 필요가 있음)
$ docker compose -f compose/auto_lb/compose.yml  up -d --build --force-recreate
  1. 우리가 알고있는 DOCKER CLI 명령어를 통해 컨테이너, 이미지 상태확인
  • chrome 브라우저에서 http://aws.google.com:99889/ 확인 위해 window hosts 파일 수정필요(window hosts 경로 검색 후 hosts 메모장으로 열기)

ref
pySatellite/pysatellite.blog#6

compose.yml

version: '3.8'
name: awsgoo
services:
  nginx-proxy:
    image: nginxproxy/nginx-proxy # https://github.com/nginx-proxy/nginx-proxy
    ports:
      - "9889:80"
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock:ro
    depends_on:
      - blog
    deploy:
      resources:
        limits:
          cpus: '0.10'
          memory: 50M
        reservations:
          cpus: '0.05'
          memory: 20M

  blog:
    # build: ../../docker_file/httpd
    # image: pysatellite/myblog
    deploy:
      mode: replicated
      replicas: 1 # https://docs.docker.com/compose/compose-file/deploy/#replicas
      resources: # https://docs.docker.com/compose/compose-file/compose-file-v3/#resources
        limits:
          cpus: '0.05'
          memory: 50M
        reservations:
          cpus: '0.01'
          memory: 20M
    expose:
      - "80"
    environment:
      - VIRTUAL_HOST=aws.google.com
      - VIRTUAL_PORT=80

ngrinder test

ngrinder

localhost:8080
admin/admin

~/app/ng/controller
$ java -jar ngrinder-controller-3.5.8.war

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.