Docker
As a one-time setup, create a Docker container as follows:
docker pull doccano/doccano
docker container create --name doccano -e "ADMIN_USERNAME=admin" -e "ADMIN_EMAIL=admin@example.com" -e "ADMIN_PASSWORD=password" -p 8000:8000 doccano/doccano
Next, start doccano by running the container:
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.
Go to http://127.0.0.1:8000/.
“----------------------------------------------------------------------------------------------”
pip installation
To install doccano, simply run:
pip install doccano
After installation, simply run the following command:
# Initialize database.
doccano init
# Create a super user.
doccano createuser --username admin --password pass
# Start the webserver.
doccano webserver --port 8000
And in another terminal, run the following command:
# Start the task queue.
doccano task
Go to http://0.0.0.0:8000/.