- Install Docker
- Make sure you also install
docker-compose, Docker Desktop comes with this tool, but Linux does not. If you already have Docker installed, make sure it's at least of version18.06.0or higher. - Clone this repo and
Bondage-Collegeinto the same folder so you have the following structure:
$ ls -l
total 8
drwxr-xr-x 18 user staff 576 Jun 25 07:28 Bondage-Club-Server
drwxr-xr-x 42 user staff 1344 Jun 23 22:14 Bondage-College
cd Bondage-Club-Servercp .env.example .env- run
docker-compose up -d --build, this will build and start up the required containers, the latter command can be repeated to update the Bondage-Club-Server if you've made server changes.
Make the required changes to index.html in your Bondage-Club repository, and it will now be available at http://localhost/BondageClub/
- Mongo runs at localhost:27017, by default with the username and password
adminandpassword, this can be changed in the .env fileMONGO_INITDB_ROOT_USERNAMEandMONGO_INITDB_ROOT_PASSWORD - Mongo-Express runs in a separate container at http://localhost:8081 and lets you access the database
docker-compose downTear down and remove all containers but not the mongo databasedocker-compose down --volumesRemove all the containers and the mongo databasedocker-compose up -d --buildbuild the server with any changes and start it updocker-compose up -d --build --no-cacherebuild the server and start it updocker-compose logs appView the logs from the bondage club serverdocker-compose logs dbView the logs of Mongo