Skip to content

walkerxiong/docker-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-env

借助docker-compose实现搭建可配置环境

  • 安装docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  • 创建.env 文件
cp .env_example .env
  • 配置工作目录 在.env文件中修改PROJECT_SRC为本地的工作目录位置
  • 启动相关容器
docker-compose up --build [container]

About

基于docker-compose创建本地开发环境

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published