Code Monkey home page Code Monkey logo

baogui1525 / docker-compose-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 52lu/docker-compose-server

0.0 1.0 0.0 255 KB

通过使用docker-compose,将一些日常开发中经常使用的服务进行编排,集装在docker中,以容器的方式运行服务、管理服务、升级或者降级服务。期望达到一次构建处处使用,再也不用再像之前那么复杂的安装、配置、启动....

Shell 36.25% Dockerfile 63.75%

docker-compose-server's Introduction

1.介绍

通过使用docker-compose,将一些日常开发中经常使用的服务进行编排,集装在docker中,以容器的方式运行服务、管理服务、升级或者降级服务。期望达到一次构建处处使用,再也不用再像之前那么复杂的安装、配置、启动....

2.配置修改

2.1 第一步复制配置文件

cp env-example .env

2.2 修改 .env

# 改成自己电脑的IP
DOCKER_HOST_IP=改成自己电脑的IP

# 本地php项目的上级目录
APP_CODE_PATH_HOST=本地php项目的上级目录

# 持久卷位置,放在 ~/docker-volume 下
DATA_PATH_HOST=持久卷位置

3.服务列表

  • consul
  • elasticsearch
  • env-example
  • grafana
  • kibana
  • logstash
  • memcached
  • mongo
  • mysql
  • nginx
  • php-fpm
  • prometheus
  • pulsar
  • rabbitmq
  • redis
  • rocketmq
  • workspace
  • zipkin

4.使用介绍

4.1 获取项目

git clone https://github.com/52lu/docker-compose-server.git

4.2 安装docker-compose

# 下载
curl -L https://github.com/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
# 赋权
chmod +x /usr/local/bin/docker-compose

5.启动服务

5.1 以启动mongo为示例

➜  docker_compose_server git:(master) ✗ docker-compose build mongo
Building mongo
Step 1/5 : FROM mongo:latest
 ---> bcef5fd2979d
Step 2/5 : LABEL maintainer="liuqinghui <[email protected]>"
 ---> Using cache
 ---> fed01971acf4
Step 3/5 : VOLUME /data/db /data/configdb
 ---> Using cache
 ---> 1696bc90fce6
Step 4/5 : CMD ["mongod"]
 ---> Using cache
 ---> cc8baec43bf6
Step 5/5 : EXPOSE 27017
 ---> Using cache
 ---> 6255839f2a97
Successfully built 6255839f2a97
Successfully tagged dockcompose_mongo:latest
➜  docker_compose_server git:(master) ✗ docker-compose up -d mongo
Creating dockcompose_mongo_1 ... done
➜  docker_compose_server git:(master) ✗ docker-compose ps
       Name                     Command             State            Ports
------------------------------------------------------------------------------------
dockcompose_mongo_1   docker-entrypoint.sh mongod   Up      0.0.0.0:27017->27017/tcp
➜  docker_compose_server git:(master) ✗

docker-compose-server's People

Contributors

52lu avatar

Watchers

James Cloos 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.