Hi Guys,
i try to install n8n with docker-compose. This is my docker-compose.yml:
n8n:
image: n8nio/n8n
ports:
- 5678:5678
depends_on:
- mariadb
environment:
- DB_TYPE=mysqldb
- DB_MYSQLDB_DATABASE=${N8N_DATABASE}
- DB_MYSQLDB_HOST=${DB_HOST}
- DB_MYSQLDB_PORT=3306
- DB_MYSQLDB_USER=${DB_USERNAME}
- DB_MYSQLDB_PASSWORD=${DB_PASSWORD}
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=${N8N_USER}
- N8N_BASIC_AUTH_PASSWORD=${N8N_PASSWORD}
command: "n8n start --tunnel"
networks:
- sail
restart: always
volumes:
- ./n8n/data:/home/node/.n8n
The problem is, that the container can’t start. I got this error:
Initializing n8n process
There was an error initializing DB: "Duplicate column name 'webhookId'"
Stopping n8n...
When i look on the database, i see this field in the Table. When i drop this field, it will create again, but than another error with an existing field, or an index throws. I rebuild the container, drop the database and so on. Everytime the same errors.
What do i wrong?
Cheers
Ralf