added localdev

This commit is contained in:
Marvin Zhang
2022-01-15 15:46:10 +08:00
parent 8f05c8a7d1
commit 8370653fa5
2 changed files with 40 additions and 0 deletions

View 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
```

View 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