Skip to content

Latest commit

 

History

History
93 lines (63 loc) · 2.19 KB

README.md

File metadata and controls

93 lines (63 loc) · 2.19 KB

Local infrastructure with docker

A simple code for setup a local environment for development.

Prerequisite

Just ensure that you have docker installed on your computer.

How to run

To start all services: docker-compose up -d

To start specific services relevant to your tech stack: docker-compose up -d postgres

How to custom your own configurations

Create a .env in the root folder and override your custom value. See available variables below.

Available infrastructure

  • MongoDB (root/Pass@word)| docker-compose up -d mongodb
  • Postgres (postgres/postgres) | docker-compose up -d postgres-plv8
  • Redis | docker-compose up -d redis
  • MSSQL (sa/Pass@word) | docker-compose up -d mssql
  • Mysql (root/Pass@word) | Adminer | docker-compose up -d mysql mysql-adminer
  • Mailhog | docker-compose up -d mailhog
  • RabbitMq | docker-compose up -d rabbitmq rabbitmq_management ... and waiting for your contribute.

Available environment variables

  1. Postgres
  • Ports
    • Default: 5432
Variable name Default value
POSTGRES_DB postgres
POSTGRES_USER postgres
POSTGRES_PASSWORD password1
  1. Microsoft SQL Server
  • Ports
    • Default: 1433
Variable name Default value
MSSQL_SA_PASSWORD Pass@word
  1. Redis
  • Ports
    • Default: 6379
Variable name Default value
ALLOW_EMPTY_PASSWORD yes
REDIS_DISABLE_COMMANDS FLUSHDB,FLUSHALL
  1. Mysql / mysql-adminer
  • Default account: root/Pass@word
  • Ports
    • DB Server: 3306
    • Adminer: 8080
Variable name Default value
MYSQL_ROOT_PASSWORD Pass@word
  1. MongoDB
Variable name Default value
MONGO_ROOT_PASSWORD Pass@word
  1. MailHog
  • Ports

    • Web UI: 8025
    • SMTP: 465
  1. RabbitMq
  • Account: guest/guest
  • Ports
    • Server: 5672
    • Management tool: 15672