1,安装docker,请参考 linux安装docker
2,安装docker-compose,请参考 Docker-Compose
3,安装simpleDocker
准备docker-compose.yml文件
version: '3'
services:
redis:
container_name: redis
image: redis:latest
web:
container_name: simple-docker
image: registry.cn-hangzhou.aliyuncs.com/seven-tao/simple-docker:0.0.7
ports:
- "80:4050"
volumes:
- /tmp/simple-docker/back:/tmp/back
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- redis
运行docker-compose.yml文件
docker-compose up -d
访问 http://localhost:
默认用户名:admin
默认密码:123456