58 lines
1.3 KiB
Markdown
58 lines
1.3 KiB
Markdown
# Project Deployment
|
|
|
|
## Overview
|
|
|
|
This repository contains the Docker Compose configuration and deployment files for the Loop server.
|
|
|
|
## Quick Start
|
|
|
|
### 1. Clone the Repository
|
|
```bash
|
|
git clone https://git.wilix.dev/wilix-infra/loop-onprem-docker.git
|
|
cd loop-onprem-docker
|
|
```
|
|
|
|
### 2. Environment Configuration
|
|
```bash
|
|
cp .env.example .env
|
|
```
|
|
Edit the `.env` file with your specific configuration values.
|
|
|
|
### 3. Start the Services
|
|
```bash
|
|
docker-compose up -d
|
|
```
|
|
|
|
### 4. Verify Deployment
|
|
```bash
|
|
docker-compose ps
|
|
docker-compose logs -f [service-name]
|
|
```
|
|
|
|
## Useful Commands
|
|
|
|
| Action | Command |
|
|
|--------|---------|
|
|
| Start services | `docker-compose up -d` |
|
|
| Stop services | `docker-compose down` |
|
|
| View logs | `docker-compose logs -f` |
|
|
| Restart services | `docker-compose restart` |
|
|
|
|
## Environment Variables
|
|
|
|
| Variable | Description | Required |
|
|
|----------|-------------|----------|
|
|
| `APP_ENV` | Application environment | Yes |
|
|
| `APP_PORT` | Port the app runs on | Yes |
|
|
| `DB_PASSWORD` | Database password | Yes |
|
|
| `SECRET_KEY` | Application secret key | Yes |
|
|
|
|
## Troubleshooting
|
|
|
|
- **Port conflicts**: Change `APP_PORT` in `.env` file
|
|
- **Database errors**: Check `DB_PASSWORD` is correct
|
|
- **View service logs**: `docker-compose logs [service_name]`
|
|
|
|
## License
|
|
|
|
[License type] - See LICENSE file for details. |