38 lines
777 B
YAML
38 lines
777 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
|
|
volumes:
|
|
- ../..:/workspaces:cached
|
|
- node_modules:/workspaces/Seclore\ n8n/node_modules
|
|
- n8n_data:/home/node/.n8n
|
|
|
|
ports:
|
|
- "5678:5678" # n8n
|
|
- "3000:3000" # Development server
|
|
- "8080:8080" # Alternative port
|
|
|
|
environment:
|
|
- N8N_HOST=0.0.0.0
|
|
- N8N_PORT=5678
|
|
- N8N_PROTOCOL=http
|
|
- NODE_ENV=development
|
|
- N8N_LOG_LEVEL=debug
|
|
|
|
# Keep container running
|
|
command: sleep infinity
|
|
|
|
# Use node user for security
|
|
user: node
|
|
|
|
# Set working directory
|
|
working_dir: /workspaces/Seclore n8n
|
|
|
|
volumes:
|
|
node_modules:
|
|
n8n_data:
|