cp gen-certs.sh ./certs/gen-certs.sh
docker run --entrypoint /cockroach/certs/gen-certs.sh --rm -v ${PWD}/certs:/cockroach/certs:rw cockroachdb/cockroach:v22.1.10
docker-compose up --build
docker exec -it roach1 ./cockroach init --certs-dir=certs
docker exec -it roach1 ./cockroach sql --certs-dir=certs
alter user root password 'welcome123';
Run schema.sql content in the same shell as above
root/welcome123
** Connect to your favorite SQL ediot using ca cert and user name and password above **
docker-compose -f docker-compose-app.yaml logs --tail=0 --follow