-
-
Notifications
You must be signed in to change notification settings - Fork 493
Setting up Bassa via containers
In order to setup Bassa using docker, install the latest version of docker with docker-compose tool on your machine. Now download the docker-compose files (production and development variants) from Release. Open terminal in the folder where the docker-compose file exists and run
docker-compose -f docker-compose.dev.yml up
starts development variant and for the production variant run the command.
docker-compose -f docker-compose.prod.yml up
The above command pulls our completely packed container images from the docker hub registry without any further configuration and starts the application instantly which is ideal for a smaller community. You can catch the front-end running at localhost:3000
for development variant and at localhost:80
for production variant.
In order to setup Bassa using docker, install the latest version of docker with docker-compose tool on your machine. Clone the Bassa GitHub repository. Run the below command to move into the root folder.
cd Bassa
We will be using a docker-compose tool to build images and finally spin up all our containers and then we can start using Bassa. docker-compose configuration file has a configuration for each container and you are free to modify it. You can run the below command.
For development:
docker-compose -f docker-compose.dev.yml up --build
You can access the Bassa Web Client at port 3000 served by Gulp.
For production:
docker-compose up --build
You can access the Bassa Web Client at port 80 served by Nginx.
You can run a specific container using a docker-compose tool. You can do that using the service names.
Service | Service Name |
---|---|
API server | api |
Web client | web |
Database server | db |
Aria2c | aria2c |
Usage
docker-compose build [SERVICE NAME]
docker-compose run [SERVICE NAME]