File size: 1,023 Bytes
a3b7df7
 
 
 
 
 
 
 
bad1b41
a3b7df7
bad1b41
a3b7df7
 
 
 
a63e449
a3b7df7
bad1b41
a63e449
bad1b41
 
 
 
 
 
 
 
 
a3b7df7
 
 
 
 
 
 
 
 
 
bad1b41
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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: