Docker Deployment
TryPost includes Laravel Sail, a lightweight Docker development environment.Requirements
- Docker Desktop (Mac, Windows) or Docker Engine (Linux)
- Docker Compose
Quick Start
1. Clone the repository
2. Install Composer dependencies
You can use a temporary container to install dependencies without PHP on your host:3. Configure environment
.env for Docker:
4. Generate the Docker Compose file
- pgsql - PostgreSQL database (recommended)
- redis - Required for queues and caching
- meilisearch - Optional, for search functionality
5. Start the containers
6. Generate application key
7. Run migrations
8. Build frontend assets
Accessing TryPost
Once running, access TryPost at:http://localhost
Common Commands
Running the Queue Worker
For background job processing:Shell Alias
Add this alias to your shell profile (~/.bashrc, ~/.zshrc):
Production with Docker
For production deployments with Docker, you’ll want to:- Use a production-ready Docker Compose configuration
- Set
APP_ENV=productionandAPP_DEBUG=false - Use proper SSL termination (nginx, Traefik, etc.)
- Configure persistent volumes for storage
- Set up proper logging and monitoring
Troubleshooting
Port conflicts
If port 80 is already in use, change theAPP_PORT in .env:

