Automatisation / docker-compose.yml
FreudArthur's picture
Refactor project structure and update configurations for n8n automation
a63e449
Raw History Blame Contribute Delete
1.02 kB
version: '3'
services:
n8n-python:
image: n8nio/n8n:latest
container_name: n8n
restart: always
ports:
- "7860:5678"
environment:
- N8N_HOST=0.0.0.0
- N8N_PORT=5678
- N8N_PROTOCOL=http
- NODE_ENV=production
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
- DB_POSTGRESDB_TIMEOUT=60000
- NODE_FUNCTION_ALLOW_EXTERNAL=python
- N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY}
- N8N_WEBHOOK_URL=http://localhost:7860/
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=${PGHOST}
- DB_POSTGRESDB_PORT=${PGPORT}
- DB_POSTGRESDB_DATABASE=${PGDATABASE}
- DB_POSTGRESDB_USER=${PGUSER}
- DB_POSTGRESDB_PASSWORD=${PGPASSWORD}
- DB_POSTGRESDB_SSL_ENABLED=true
- DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=false
volumes:
- "E:/cours ifri/Programmation et BD/Docker/n8n-automatisation/n8n_volume:/home/node/.n8n"
python:
container_name: python
build: .
ports:
- "8000:8000"
volumes:
n8n_volume: