If you had a problem creating your docker instance, enter this command in the mongo database:
db.docker.drop();
It will allow you to delete the docker instances created
To know
You would not be able to access the platform on your local network, you will have to replace "localhost" with "your IP" in the ".env" of /frontEnd, /backEnd and /dockerAPI.
Thanks for the additional MongoDB usage advice :)
Sadly I still did not manage to launch it. Backend and DockerAPI both said they cant connect to mongodb.
I did find and replace the <Current Mongosh Log ID>.
Installation CTFCafe
Prerequisites
Nodejs v20 Npm v10 Docker Docker-compose
Install MongoDB
Create script for install
Move in your favorite directory.
Modify script in line 6, 7 and 52. Script :
Run script
Start services
In the backend directory :
In the frontend directory :
In the dockerAPI directory :
Config of docker chall
Create new chall in ADMIN_MODE. In "Docker", put the github link to the file where you put your docker-compose. /!\ Warning, put the tree link /!\ Example : https://github.com/Gomez0015/CTFCafe_Docker_Chall_Test/tree/main/challTest
Useful commands
If you had a problem creating your docker instance, enter this command in the mongo database:
It will allow you to delete the docker instances created
To know
You would not be able to access the platform on your local network, you will have to replace "localhost" with "your IP" in the ".env" of /frontEnd, /backEnd and /dockerAPI.