Created
September 4, 2025 22:51
-
-
Save bssanchez/509c5bf4315f830088ea6697802bd3de to your computer and use it in GitHub Desktop.
Docker Compose N8N config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| postgres: | |
| image: postgres:15-alpine | |
| container_name: postgres | |
| environment: | |
| POSTGRES_USER: ${POSTGRES_USER:-n8n} | |
| POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-n8n} | |
| POSTGRES_DB: ${POSTGRES_DB:-n8n} | |
| volumes: | |
| - postgres_data:/var/lib/postgresql/data | |
| networks: | |
| - private | |
| n8n: | |
| image: n8nio/n8n:latest | |
| container_name: n8n | |
| environment: | |
| GENERIC_TIMEZONE: ${N8N_GENERIC_TIMEZONE:-"America/Bogota"} | |
| TZ: ${N8N_TZ:-"America/Bogota"} | |
| NON_ENCRYPTION_KEY: ${N8N_NON_ENCRYPTION_KEY:-265AD12E94C76451D4BCCF69D43F7} | |
| N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS: 1 | |
| DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED: 0 | |
| DB_POSTGRESDB_SSL: false | |
| N8N_RUNNERS_ENABLED: 1 | |
| DB_TYPE: postgres | |
| DB_POSTGRES_HOST: postgres | |
| DB_POSTGRES_PORT: 5432 | |
| DB_POSTGRES_USER: ${POSTGRES_USER:-n8n} | |
| DB_POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-n8n} | |
| DB_POSTGRES_DATABASE: ${POSTGRES_DB:-n8n} | |
| DB_POSTGRES_SCHEMA: ${POSTGRES_SCHEMA:-public} | |
| volumes: | |
| - n8n_data:/home/node/.n8n | |
| ports: | |
| - "5678:5678" | |
| networks: | |
| - private | |
| extra_hosts: | |
| - "host.docker.internal:host-gateway" | |
| depends_on: | |
| - postgres | |
| volumes: | |
| postgres_data: | |
| n8n_data: | |
| networks: | |
| private: | |
| driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment