How to setup CVAT
in AI on Cvat
- docker ps after running docker-compose up -d
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES c59396ebc695 nginx:stable-alpine "/docker-entrypoint.…" 2 minutes ago Up 2 minutes 0.0.0.0:8080->80/tcp cvat_proxy 9adce835f4db cvat/ui "/docker-entrypoint.…" 2 minutes ago Up 2 minutes 80/tcp cvat_ui c09a03e4cd06 cvat/server "/usr/bin/supervisord" 2 minutes ago Up 2 minutes 8080/tcp, 8443/tcp cvat 17b863adf3bf postgres:10-alpine "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 5432/tcp cvat_db ac12ddb3ea81 redis:4.0-alpine "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 6379/tcp cvat_redis
- Enter into the db container
docker exec -it cvat_db bash
- Create user testworks
su - root -c "createuser testuser"
- Connect to the db
docker exec -it cvat_db psql cvat
- Grant all privileges
grant all privileges on database cvat to testuser;