feat: initial commit
This commit is contained in:
35
docker-compose.yml
Normal file
35
docker-compose.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
services:
|
||||
scrapling-service:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: service/Dockerfile
|
||||
ports:
|
||||
- "8765:8765"
|
||||
environment:
|
||||
API_KEY: ${SCRAPLING_API_KEY:-}
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8765/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
n8n:
|
||||
image: n8nio/n8n:latest
|
||||
ports:
|
||||
- "5678:5678"
|
||||
environment:
|
||||
N8N_BASIC_AUTH_ACTIVE: "true"
|
||||
N8N_BASIC_AUTH_USER: ${N8N_USER:-admin}
|
||||
N8N_BASIC_AUTH_PASSWORD: ${N8N_PASSWORD:-changeme}
|
||||
NODE_ENV: production
|
||||
volumes:
|
||||
- n8n_data:/home/node/.n8n
|
||||
- ./dist:/home/node/.n8n/nodes/node_modules/n8n-nodes-scrapling
|
||||
depends_on:
|
||||
scrapling-service:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
n8n_data:
|
||||
Reference in New Issue
Block a user