feat(docker): enable containerization of marketplace scraper
Introduce Dockerfile with production build using Bun, .dockerignore for efficient builds, and docker-compose.yml for easy local and prod deployment on port 3000.
This commit is contained in:
15
docker-compose.yml
Normal file
15
docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
services:
|
||||
marketplace-scraper:
|
||||
build: .
|
||||
ports:
|
||||
- "4005:4005"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=4005
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:4005/api/status"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 5s
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user