Fix Docker port configuration
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user