Fix Docker port configuration

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 04:31:11 +00:00
parent f9feb67425
commit b26e7bcbc1
3 changed files with 7 additions and 15 deletions

View File

@@ -28,7 +28,7 @@ cd <repo-name>
docker-compose up -d
```
The application will be available at: **http://localhost:8080**
The application will be available at: **http://localhost:8183**
### 3. Stop the application
@@ -83,7 +83,7 @@ Click the "Check Prices Now" button in the Alerts tab to manually trigger price
```bash
# Check prices every hour
0 * * * * curl -X POST http://localhost:8080/functions/v1/check-prices
0 * * * * curl -X POST http://localhost:8183/functions/v1/check-prices
```
## Architecture
@@ -116,11 +116,10 @@ The app uses Lovable Cloud which is pre-configured. No additional environment se
### Port Configuration
Default port is 8080. To change it, edit `docker-compose.yml`:
Default port is 8183. To change it, edit `nginx.conf`:
```yaml
ports:
- "YOUR_PORT:80"
```nginx
listen YOUR_PORT;
```
## Development

View File

@@ -5,15 +5,8 @@ services:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:80"
network_mode: host
environment:
- NODE_ENV=production
restart: unless-stopped
container_name: pricetracker
networks:
- pricetracker-network
networks:
pricetracker-network:
driver: bridge

View File

@@ -1,5 +1,5 @@
server {
listen 80;
listen 8183;
server_name localhost;
root /usr/share/nginx/html;
index index.html;