This repository contains the backend server for a real-time chat application.
149
AirCloud Chat is a containerized chat application that provides real-time messaging capabilities with MongoDB integration. This Docker image offers a scalable and easy-to-deploy chat solution.
MONGODB_URL: Connection string for your MongoDB databaseAPI_TOKEN: Authentication token for API accessversion: "3.8"
networks:
aircloud-network:
driver: bridge
services:
aircloud_chat:
image: aircloud05/aircloud-chat:1.0.0
container_name: aircloud_chat
build: .
ports:
- "5000:5000"
environment:
- MONGODB_URL=${MONGODB_URL}
- API_TOKEN=${API_TOKEN}
restart: always
networks:
- aircloud-network
Create a .env file in your project directory:
MONGODB_URL=mongodb://localhost:27017/aircloud-chat
API_TOKEN=your-secure-api-token
Start the application:
docker-compose up -d
View logs:
docker logs aircloud_chat
Follow logs in real-time:
docker logs -f aircloud_chat
Stop the application:
docker-compose down
The application uses a custom Docker network (aircloud-network) with bridge driver for:
http://localhost:5000Users can connect to various MongoDB instances:
Example MongoDB connection strings:
# Local MongoDB
MONGODB_URL=mongodb://localhost:27017/aircloud-chat
# MongoDB with authentication
MONGODB_URL=mongodb://username:password@localhost:27017/aircloud-chat
# MongoDB Atlas
MONGODB_URL=mongodb+srv://username:[email protected]/aircloud-chat
# Docker MongoDB service
MONGODB_URL=mongodb://mongo:27017/aircloud-chat
Monitor application status:
docker ps | grep aircloud_chat
# View recent logs
docker logs --tail 50 aircloud_chat
# Search logs for errors
docker logs aircloud_chat 2>&1 | grep -i error
# Monitor logs continuously
docker logs -f aircloud_chat
# Restart container
docker restart aircloud_chat
# Execute commands in container
docker exec -it aircloud_chat /bin/bash
# Inspect container details
docker inspect aircloud_chat
docker logs aircloud_chatdocker statsContent type
Image
Digest
sha256:48c482cec…
Size
1.2 GB
Last updated
about 1 year ago
docker pull aircloud05/aircloud-chat:1.0.0