Deploy TradeTally quickly using Docker and Docker Compose.
Create a new directory and download the required files:
mkdir tradetally
cd tradetally
# Download the production docker-compose file
curl -O https://raw.githubusercontent.com/GeneBO98/tradetally/refs/heads/main/docker-compose.yaml
# Download the environment template
curl -O https://raw.githubusercontent.com/GeneBO98/tradetally/main/.env.example
# Rename to .env
mv .env.example .env
Edit the .env file with your settings:
nano .env # or vim .env
Important configurations:
JWT_SECRET: Change this to a secure random stringDB_PASSWORD: Set a strong database password# Start the application
docker-compose -f docker-compose.yaml up -d
# Check status
docker-compose -f docker-compose.yaml ps
# View logs
docker-compose -f docker-compose.yaml logs -f app
The database will be automatically created. To verify:
# Check if database is ready
docker exec tradetally-db pg_isready -U trader -d tradetally
# If you need to manually run the schema (only if tables don't exist):
# docker exec -i tradetally-db psql -U trader -d tradetally < schema.sql
Create your first user account through the registration page.
docker-compose -f docker-compose.yaml logs -f app
docker-compose -f docker-compose.yaml logs -f postgres
# Pull latest image
docker-compose -f docker-compose.yaml pull app
# Restart application (preserves database)
docker-compose -f docker-compose.yaml up -d app
docker exec tradetally-db pg_dump -U trader tradetally > tradetally_backup_$(date +%Y%m%d).sql
docker exec -i tradetally-db psql -U trader tradetally < tradetally_backup.sql
# Stop all services (preserves data)
docker-compose -f docker-compose.yaml down
# Stop and remove volumes (WARNING: deletes all data)
docker-compose -f docker-compose.yaml down -v
After deployment, your directory should look like:
tradetally/
├── docker-compose.production.yaml
├── .env
├── logs/ (created automatically)
└── data/ (created automatically)
# Check logs
docker-compose -f docker-compose.yaml logs app
# Check database connection
docker exec tradetally-app ping postgres
# Check database status
docker-compose -f docker-compose.yaml ps postgres
# Check database logs
docker-compose -f docker-compose.yaml logs postgres
docker stats.envFor issues and support:
For full CUSIP resolution functionality:
Add these to your .env file as OPENFIGI_API_KEY and GEMINI_API_KEY.
Content type
Image
Digest
sha256:f1dc60c80…
Size
129.7 MB
Last updated
3 days ago
docker pull potentialmidas/tradetally