did you clean docker volumes?
just setting the variables and restarting thing over will affect the same volumes.
Try with fresh start and clean volumes.
# stop all containers
docker stop $(docker ps -a -q)
# clean containers, networks, volumes
docker system prune -f && docker volume prune -f
then set everything as mentioned in docs, use specific versions. don’t use v12, v13-beta, edge
use full version like v12.15.0, v13.0.0-beta.9
find release versions here
Generally frappe and erpnext versions matter. Keep both on same major versions.
In case of docker, frappe version is used to pull frappe-socketio image