mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(docker-compose) add
This commit is contained in:
parent
c4bd976c57
commit
5826f748a4
4 changed files with 51 additions and 1 deletions
|
|
@ -3,4 +3,4 @@
|
|||
manifest.yml
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
|
||||
docker-compose.yml
|
||||
|
|
|
|||
20
HELP.md
20
HELP.md
|
|
@ -422,6 +422,26 @@ docker run -v ~:/root -v /:/mnt/fs -it -p 8000:8000 coderaiser/cloudcmd
|
|||
Config would be read from home directory, hosts root file system would be mount to `/mnt/fs`,
|
||||
`8000` port would be exposed to hosts port.
|
||||
|
||||
Also you could use [docker compose](https://docs.docker.com/compose/ "Docker Compose") with `docker-compose.yml`:
|
||||
|
||||
```yml
|
||||
version: '2'
|
||||
services:
|
||||
web:
|
||||
ports:
|
||||
- 8000:8000
|
||||
volumes:
|
||||
- ~:/root
|
||||
- /:/mnt/fs
|
||||
image: coderaiser/cloudcmd
|
||||
```
|
||||
|
||||
When you create this file run:
|
||||
|
||||
```sh
|
||||
docker-compose up
|
||||
```
|
||||
|
||||
Version history
|
||||
---------------
|
||||
- *2016.03.07*, **[v5.2.1](//github.com/cloudcmd/archive/raw/master/cloudcmd-v5.2.1.tar.gz)**
|
||||
|
|
|
|||
20
README.md
20
README.md
|
|
@ -96,6 +96,26 @@ docker run -v ~:/root -v /:/mnt/fs -it -p 8000:8000 coderaiser/cloudcmd
|
|||
Config would be read from home directory, hosts root file system would be mount to `/mnt/fs`,
|
||||
`8000` port would be exposed to hosts port.
|
||||
|
||||
Also you could use [docker compose](https://docs.docker.com/compose/ "Docker Compose") with `docker-compose.yml`:
|
||||
|
||||
```yml
|
||||
version: '2'
|
||||
services:
|
||||
web:
|
||||
ports:
|
||||
- 8000:8000
|
||||
volumes:
|
||||
- ~:/root
|
||||
- /:/mnt/fs
|
||||
image: coderaiser/cloudcmd
|
||||
```
|
||||
|
||||
When you create this file run:
|
||||
|
||||
```sh
|
||||
docker-compose up
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
|
|
|||
10
docker-compose.yml
Normal file
10
docker-compose.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
version: '2'
|
||||
services:
|
||||
web:
|
||||
ports:
|
||||
- 8000:8000
|
||||
volumes:
|
||||
- ~:/root
|
||||
- /:/mnt/fs
|
||||
image: coderaiser/cloudcmd
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue