Giter VIP home page Giter VIP logo

docker-compose-repo's Introduction

docker-compose-repo

docker-compose配置文件仓库,包含常用solr/activeMQ/redis/zookeeper/fastdfs等docker容器配置,用于快速搭建个人开发环境。在VirtualBox+Ubuntu16.04虚拟机环境下及debian 9实体机上使用正常。

虚拟机测试环境

  • Ubuntu Server 16.04 x64
  • Virtual Box 5.2.0

前期准备

如在实体linux系统机器上安装docker则不需要此步

1. 安装Virtual Box

略。

2. 在VBox内安装Ubuntu虚拟机(以下简称客户机)

略。如需用ssh,请勾选安装OpenSSH server。

3. 配置客户机网络

请见Virtual Box内Ubuntu系统虚拟机双网卡上内外网配置(Debian系适用).

安装docker-ce和docker-compose

请见Ubuntu安装docker和docker-compose.

启动

1. 使用ssh客户端将所有文件复制到客户机中,或直接从github clone。

2. 启动前准备工作

a. 对于activeMQ,请先下载安装包到activemq文件夹,并根据实际修改activemq/Dockerfile中activemq安装包的文件名。如

ADD ./apache-activemq-5.14.5-bin.tar.gz /

b. 对于fastdfs,请将fastdfs/docker-compose.sh文件里的IP值改为自己的虚拟机的Host-Only ip,如192.168.56.110

c. 添加执行权限并初始化

$ chmod u+x compose.sh
$ ./compose.sh init

启动常用开发环境(均为单机版): solr, zookeeper, fastdfs, redis, activemq

$ ./compose.sh start

注意: compose.sh 仅启动了一些常用的开发环境,若要启动其他的容器,请手动cd到相应目录执行docker-compose up -d.

顺便安利一个SSH客户端,mobaXterm,已用多年,墙裂推荐。

docker-compose-repo's People

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.