mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
added localdev
This commit is contained in:
17
workspace/localdev/README.md
Normal file
17
workspace/localdev/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Local Dev
|
||||
|
||||
For those who want to develop or contribute to crawlab project can use `docker-compose.yml` to start necessary containers (fs, mongo) to support local development.
|
||||
|
||||
Please make sure you have installed [Docker](https://docker.io) and [Docker-Compose](https://docs.docker.com/compose/).
|
||||
|
||||
## Start Containers
|
||||
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
## Stop Containers
|
||||
|
||||
```bash
|
||||
docker-compose down
|
||||
```
|
||||
23
workspace/localdev/docker-compose.yml
Normal file
23
workspace/localdev/docker-compose.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
|
||||
fs:
|
||||
image: chrislusf/seaweedfs:2.79 # use a remote image
|
||||
container_name: crawlab_localdev_fs
|
||||
restart: always
|
||||
# command: "server -dir /data -master.dir /data -volume.dir.idx /data -ip localhost -ip.bind 0.0.0.0 -filer -encryptVolumeData" # auth
|
||||
command: "server -dir /data -master.dir /data -volume.dir.idx /data -ip localhost -ip.bind 0.0.0.0 -filer" # no auth
|
||||
ports:
|
||||
- 8888:8888
|
||||
volumes:
|
||||
- ./data/fs:/data
|
||||
|
||||
mongo:
|
||||
image: mongo:5
|
||||
container_name: crawlab_localdev_mongo
|
||||
restart: always
|
||||
ports:
|
||||
- 27017:27017
|
||||
volumes:
|
||||
- ./data/mongo:/data
|
||||
Reference in New Issue
Block a user