This guide will walk you through the process of deploying the project using Docker and Docker Compose.
Before you begin, ensure you have the following installed:
-
Clone the project repository to your local machine.
-
Navigate to the root of the project directory.
-
Create a
.envfile in the root of your project directory with the following environment variables:
MONGO_USERNAME=
MONGO_PASSWORD=
MONGO_DATABASE=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENTSECRET=
REDIRECT_GOOGLE_URL=
CLIENT_URL=
TOKEN_SECRET=
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
DISCORD_BOT=
REDIRECT_DISCORD_URL=
SPOTIFY_CLIENT_ID=
SPOTIFY_SECRET_ID=
REDIRECT_SPOTIFY_URL=
MOBILE_APP=Once the .env file is configured:
- Open a terminal in the project directory.
- Ensure no services are running on ports
8080,8081, and27017. - Execute the command
docker-compose up --buildto build and start the services.
Your services will now be accessible at the following URLs:
- Server:
http://localhost:8080 - Client Web:
http://localhost:8081 - Client Mobile: 'http://localhost:8081/client.apk" -> provides directly the apk
- MongoDB: Internally accessible by the server on port
27017.
To stop the application:
- Use
Ctrl+Cin the terminal if the services were started in the foreground. - Run
docker-compose downin a new terminal window if the services were started in detached mode.
This will stop and remove all running containers, networks, and the default anonymous volumes attached to the containers.
For detailed information on environment setup and variables, refer to the official documentation of each service (MongoDB, Google Auth, Discord, etc.).
For further support or contribution guidelines, please refer to our contributing document or contact the repository maintainers.