diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md index 9d645d4..5b95825 100644 --- a/DEPLOYMENT.md +++ b/DEPLOYMENT.md @@ -28,7 +28,7 @@ cd 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 diff --git a/docker-compose.yml b/docker-compose.yml index 2e79189..b40cc84 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/nginx.conf b/nginx.conf index bb46a96..508320c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,5 +1,5 @@ server { - listen 80; + listen 8183; server_name localhost; root /usr/share/nginx/html; index index.html;