diff --git a/docker/compose/withMongo/.env b/docker/compose/withMongo/.env index 0005b2cd9a..a1141f23f6 100644 --- a/docker/compose/withMongo/.env +++ b/docker/compose/withMongo/.env @@ -1,6 +1,9 @@ -MONGO_INITDB_ROOT_USERNAME=adminuser -MONGO_INITDB_ROOT_PASSWORD=JvsjjAYg12FJ90sdCBdsh322V +MONGO_INITDB_ROOT_USERNAME=changeUser +MONGO_INITDB_ROOT_PASSWORD=changePassword MONGO_INITDB_DATABASE=n8n -MONGO_NON_ROOT_USERNAME=n8nuser -MONGO_NON_ROOT_PASSWORD=PLsQ8vHGShwDFdmSssb +MONGO_NON_ROOT_USERNAME=changeUser +MONGO_NON_ROOT_PASSWORD=changePassword + +N8N_BASIC_AUTH_USER=changeUser +N8N_BASIC_AUTH_PASSWORD=changePassword diff --git a/docker/compose/withMongo/docker-compose.yml b/docker/compose/withMongo/docker-compose.yml index d9eb12d74d..be2c4f0607 100644 --- a/docker/compose/withMongo/docker-compose.yml +++ b/docker/compose/withMongo/docker-compose.yml @@ -15,11 +15,14 @@ services: - ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh n8n: - image: n8n + image: n8nio/n8n restart: always environment: - DB_TYPE=mongodb - DB_MONGODB_CONNECTION_URL=mongodb://n8nuser:${MONGO_NON_ROOT_PASSWORD}@mongo:27017/${MONGO_INITDB_DATABASE} + - N8N_BASIC_AUTH_ACTIVE=true + - N8N_BASIC_AUTH_USER + - N8N_BASIC_AUTH_PASSWORD ports: - 5678:5678 links: diff --git a/docker/compose/withPostgres/.env b/docker/compose/withPostgres/.env index f0d73042d4..c074f42c9e 100644 --- a/docker/compose/withPostgres/.env +++ b/docker/compose/withPostgres/.env @@ -1,6 +1,9 @@ -POSTGRES_USER=adminuser -POSTGRES_PASSWORD=JvsjjAYg12FJ90sdCBdsh322V +POSTGRES_USER=changeUser +POSTGRES_PASSWORD=changePassword POSTGRES_DB=n8n -POSTGRES_NON_ROOT_USER=n8nuser -POSTGRES_NON_ROOT_PASSWORD=PLsQ8vHGShwDFdmSssb +POSTGRES_NON_ROOT_USER=changeUser +POSTGRES_NON_ROOT_PASSWORD=changePassword + +N8N_BASIC_AUTH_USER=changeUser +N8N_BASIC_AUTH_PASSWORD=changePassword diff --git a/docker/compose/withPostgres/docker-compose.yml b/docker/compose/withPostgres/docker-compose.yml index debb2f9b52..eb572a39a2 100644 --- a/docker/compose/withPostgres/docker-compose.yml +++ b/docker/compose/withPostgres/docker-compose.yml @@ -24,6 +24,9 @@ services: - DB_POSTGRESDB_DATABASE=${POSTGRES_DB} - DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER} - DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD} + - N8N_BASIC_AUTH_ACTIVE=true + - N8N_BASIC_AUTH_USER + - N8N_BASIC_AUTH_PASSWORD ports: - 5678:5678 links: