Skip to content

sunl888/docker-basic-configure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-basic-configure

docker 基礎配置

安装

  1. 使用 docker network create app_net 创建一个内部网络
  2. 在对应的目录使用 docker-compose up -d 即可创建对应服务

Minio

访问minio: http://localhost:9000

Mysql

  • docker内部直接使用 Host: mysql 就可以连接mysql服务了
  • 访问phpMyAdmin: http://localhost:8081

Nginx

  • 复制一个nginx.confsites-available目录
  • 编辑docker-compose.yml里面的volumes 模块,映射目录
  • 执行 docker-compose up -d

Redis

  • docker内部直接使用 Host: redis 就可以连接redis服务
  • 访问 redisManagerhttp://localhost:8082