Skip to content

smlab-niser/tirtha-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Config for Project Tirtha

  • Go to the main repo for instructions related to manual setup.

Warning

The image sizes are large and downloading packages takes the most time during the build process. On a stable 100 Mbps connection, the build process takes around 30-40 minutes.

Image Size
tirtha-web 21.1 GB
tirtha-db 0.431 GB

Requirements

Build steps

  • Clone the repository and cd into the directory:
    git clone https://github.com/smlab-niser/tirtha-docker.git && cd tirtha-docker
  • Edit the docker.env file to set the environment variables as per your requirements. In case, you are setting up Tirtha on a remote server, you need to set the HOST_IP to the IP address of the server. Also, set the DEBUG variable to False, if you are configuring Tirtha for production.
  • The containers will use ports 8000 (for gunicorn), 8001 (for Postgres), and 15672 (for RabbitMQ), on the host system. Ensure these ports are free on the host.
  • Run the following command to build the images:
    sudo docker-compose up
  • After the build is complete, the containers can be attached using the following command:
    sudo docker exec -it container_name
    To find the container_name, use the following command:
    sudo docker ps
  • The Tirtha web interface can be accessed at http://localhost:8000 or http://<HOST_IP>:8000 if you are setting up Tirtha on a remote server. To access the Django admin interface, use http://localhost:8000/admin or http://<HOST_IP>:8000/admin. The default username and password can be found in the docker.env file.
  • To access Tirtha-related logs, check the /var/www/tirtha/logs/ directory. Logs for system packages, like RabbitMQ, can be accessed using journalctl. Postgres logs are available using sudo docker logs --details container_name.