Giter Club home page Giter Club logo

newstrust's Introduction

배포

모든 시스템은 도커 환경 위에서 구현됩니다. 도커를 설치한 후 아래 명령어로 배포합니다.
마지막에 입력하는 숫자는 실행시킬 워커의 개수입니다. 지정하는 만큼 컨테이너가 생성됩니다.

docker-compose up -d --scale worker=2
  1. 도커 컨테이너들이 모두 올라오면 {호스트}:60000로 접속 가능합니다.
  2. 초기 관리자계정 로그인은 admin / 0000test로 가능합니다.
  3. web 컨테이너는 go 환경에서 실행되며, 소스코드가 수정되면 gin에 의해 자동으로 재빌드 및 배포 됩니다.

기타 명령어

# mongo 컨테이너만 다시 실행하기
docker-compose up -d --no-deps --build mongo
# web 컨테이너만 다시 실행(이미지 재생성)
docker-compose up -d --no-deps --build --force-recreate web
# worker 이미지 재빌드, 컨테이너 재시작
sudo docker-compose build worker
docker-compose restart worker

newstrust's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

milysun

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.