|
|
@ -60,15 +60,26 @@ git clone https://github.com/chakki-works/doccano.git --config core.autocrlf=inp |
|
|
|
|
|
|
|
### Docker |
|
|
|
|
|
|
|
As a one-time setup, create a Docker container for Doccano: |
|
|
|
|
|
|
|
```bash |
|
|
|
docker pull chakkiworks/doccano |
|
|
|
docker container create --name doccano \ |
|
|
|
-e "ADMIN_USERNAME=admin" \ |
|
|
|
-e "ADMIN_EMAIL=admin@example.com" \ |
|
|
|
-e "ADMIN_PASSWORD=password" \ |
|
|
|
-p 8000:8000 chakkiworks/doccano |
|
|
|
``` |
|
|
|
|
|
|
|
Next, start Doccano by running the container: |
|
|
|
|
|
|
|
```bash |
|
|
|
$ docker pull chakkiworks/doccano |
|
|
|
$ docker run -d --rm --name doccano \ |
|
|
|
-e "ADMIN_USERNAME=admin" \ |
|
|
|
-e "ADMIN_EMAIL=admin@example.com" \ |
|
|
|
-e "ADMIN_PASSWORD=password" \ |
|
|
|
-p 8000:8000 chakkiworks/doccano |
|
|
|
docker container start doccano |
|
|
|
``` |
|
|
|
|
|
|
|
To stop the container, run `docker container stop doccano -t 5`. |
|
|
|
All data created in the container will persist across restarts. |
|
|
|
|
|
|
|
Access <http://127.0.0.1:8000/>. |
|
|
|
|
|
|
|
## One-click Deployment |
|
|
|