Coder Social home page Coder Social logo

nest-docker-container's Introduction

project docker containers

Multi container docker application.

Stack: ReactJS, Node/TS Express, Postgres, Redis.

Requirements

You need to have installed

  • git
  • docker engine (client and server) >= 17.x.x
  • docker-compose >= 1.8.0

Steps to install docker on the docker website.

Set Up

Before to setup environment, you must set the following host kernel param to work properly with elasticsearch

root@localhost$ sudo sysctl -w vm.max_map_count=262144

All you need to do is run:

$ git clone https://github.com/sinner/ts-docker-container.git && cd ts-docker-container ; cp local/.env.dist local/.env ; chmod u+x ./setup.sh && ./setup.sh

After that, you could open in your favorite IDE or Editor the backend/front directory

Useful environment information

  • You could add the following lines into /etc/hosts

    127.0.0.1       local.api.project.com
    127.0.0.1       local.web.project.com
    127.0.0.1       local.rabbit.project.com

Redis-CLI usage

If you need review some stored data in redis, you could execute the following command:

  $ docker exec -ti project-redis redis-cli

RabbitMQ usage

  • First of all, Log-In with this link: local.rabbit.project.com:15672

    • user/pass: guest/guest

    If it's your first setup, please, go to 'Overview' and navigate to import definitions and upload the config, maybe, there are several backup files in queue/files/rabbitrabbit-project*, please, import the last one.

After this, you can log-In with project/project123 to the web management dashboard.

  • Note: If you don't have queue/rabbitmq/data directory, please, create it, to avoid permission troubles.

Contributing

Do you find another way to improve the docker build set up?...

...well you should be aware of some docker good practices to contributing

nest-docker-container's People

Contributors

sinner 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.