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 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 ### 3. Stop the application
@@ -83,7 +83,7 @@ Click the "Check Prices Now" button in the Alerts tab to manually trigger price
```bash ```bash
# Check prices every hour # 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 ## Architecture
@@ -116,11 +116,10 @@ The app uses Lovable Cloud which is pre-configured. No additional environment se
### Port Configuration ### Port Configuration
Default port is 8080. To change it, edit `docker-compose.yml`: Default port is 8183. To change it, edit `nginx.conf`:
```yaml ```nginx
ports: listen YOUR_PORT;
- "YOUR_PORT:80"
``` ```
## Development ## Development

View File

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

View File

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