Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Hey Guys can you help me with the docker-compose setup ?
i've a basic docker-compose file that works fine ( i'm actually in dev ).

the problem is that when the casdoor container is created the entrypoint is

/bin/sh -c './server --createDatabase=true

as in the docker-compose example

by the way this cause an error when the compose container is stopped and restarted ( or docker itself is restarted).
after the restart the casdoor image exits with an error 'cause it tries to reinitialize the db ( and also use the init_data.json) but it will go in duplicate keys error since the db was already created and "seeded" the first time...

some help please?

3views
2users
1 minread

use the official docker script

only if you fing bug in official script, that will be supported

this is not a place to teach you how to write your own docker script, maybe go to docker community for help would be better

1 / 2
Jul 2024