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 |
- Docker engine and compose.
- Nvidia drivers installed.
- Nvidia container toolkit.
- 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 theHOST_IP
to the IP address of the server. Also, set theDEBUG
variable toFalse
, 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:
To find the
sudo docker exec -it container_name
container_name
, use the following command:sudo docker ps
- The Tirtha web interface can be accessed at
http://localhost:8000
orhttp://<HOST_IP>:8000
if you are setting up Tirtha on a remote server. To access the Django admin interface, usehttp://localhost:8000/admin
orhttp://<HOST_IP>:8000/admin
. The default username and password can be found in thedocker.env
file. - To access Tirtha-related logs, check the
/var/www/tirtha/logs/
directory. Logs for system packages, like RabbitMQ, can be accessed usingjournalctl
. Postgres logs are available usingsudo docker logs --details container_name
.