init
This commit is contained in:
@@ -7,6 +7,7 @@ This document describes how to run the APSKEL POS Backend using Docker and Docke
|
||||
- Docker (version 20.10 or later)
|
||||
- Docker Compose (version 2.0 or later)
|
||||
- Git (for cloning the repository)
|
||||
- Go 1.21+ (for local development)
|
||||
|
||||
## Quick Start
|
||||
|
||||
@@ -212,7 +213,14 @@ docker-compose logs -f backend-dev
|
||||
|
||||
### Common Issues
|
||||
|
||||
1. **Port Already in Use**
|
||||
1. **Go Version Compatibility Error**
|
||||
```bash
|
||||
# Error: package slices is not in GOROOT
|
||||
# Solution: Make sure Dockerfile uses Go 1.21+
|
||||
# Check go.mod file requires Go 1.21 or later
|
||||
```
|
||||
|
||||
2. **Port Already in Use**
|
||||
```bash
|
||||
# Check what's using the port
|
||||
lsof -i :3300
|
||||
@@ -220,7 +228,7 @@ docker-compose logs -f backend-dev
|
||||
# Change ports in docker-compose.yaml if needed
|
||||
```
|
||||
|
||||
2. **Database Connection Failed**
|
||||
3. **Database Connection Failed**
|
||||
```bash
|
||||
# Check if database is running
|
||||
docker-compose ps postgres
|
||||
@@ -229,13 +237,13 @@ docker-compose logs -f backend-dev
|
||||
docker-compose logs postgres
|
||||
```
|
||||
|
||||
3. **Permission Denied**
|
||||
4. **Permission Denied**
|
||||
```bash
|
||||
# Make sure script is executable
|
||||
chmod +x docker-build.sh
|
||||
```
|
||||
|
||||
4. **Out of Disk Space**
|
||||
5. **Out of Disk Space**
|
||||
```bash
|
||||
# Clean up unused Docker resources
|
||||
docker system prune -a
|
||||
|
||||
Reference in New Issue
Block a user