mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-24 11:02:12 -08:00
🐳 Add login to example docker-compose setup
This commit is contained in:
parent
85e8714c05
commit
9615542ff8
|
@ -1,6 +1,9 @@
|
||||||
MONGO_INITDB_ROOT_USERNAME=adminuser
|
MONGO_INITDB_ROOT_USERNAME=changeUser
|
||||||
MONGO_INITDB_ROOT_PASSWORD=JvsjjAYg12FJ90sdCBdsh322V
|
MONGO_INITDB_ROOT_PASSWORD=changePassword
|
||||||
MONGO_INITDB_DATABASE=n8n
|
MONGO_INITDB_DATABASE=n8n
|
||||||
|
|
||||||
MONGO_NON_ROOT_USERNAME=n8nuser
|
MONGO_NON_ROOT_USERNAME=changeUser
|
||||||
MONGO_NON_ROOT_PASSWORD=PLsQ8vHGShwDFdmSssb
|
MONGO_NON_ROOT_PASSWORD=changePassword
|
||||||
|
|
||||||
|
N8N_BASIC_AUTH_USER=changeUser
|
||||||
|
N8N_BASIC_AUTH_PASSWORD=changePassword
|
||||||
|
|
|
@ -15,11 +15,14 @@ services:
|
||||||
- ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh
|
- ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh
|
||||||
|
|
||||||
n8n:
|
n8n:
|
||||||
image: n8n
|
image: n8nio/n8n
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- DB_TYPE=mongodb
|
- DB_TYPE=mongodb
|
||||||
- DB_MONGODB_CONNECTION_URL=mongodb://n8nuser:${MONGO_NON_ROOT_PASSWORD}@mongo:27017/${MONGO_INITDB_DATABASE}
|
- 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:
|
ports:
|
||||||
- 5678:5678
|
- 5678:5678
|
||||||
links:
|
links:
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
POSTGRES_USER=adminuser
|
POSTGRES_USER=changeUser
|
||||||
POSTGRES_PASSWORD=JvsjjAYg12FJ90sdCBdsh322V
|
POSTGRES_PASSWORD=changePassword
|
||||||
POSTGRES_DB=n8n
|
POSTGRES_DB=n8n
|
||||||
|
|
||||||
POSTGRES_NON_ROOT_USER=n8nuser
|
POSTGRES_NON_ROOT_USER=changeUser
|
||||||
POSTGRES_NON_ROOT_PASSWORD=PLsQ8vHGShwDFdmSssb
|
POSTGRES_NON_ROOT_PASSWORD=changePassword
|
||||||
|
|
||||||
|
N8N_BASIC_AUTH_USER=changeUser
|
||||||
|
N8N_BASIC_AUTH_PASSWORD=changePassword
|
||||||
|
|
|
@ -24,6 +24,9 @@ services:
|
||||||
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
|
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
|
||||||
- DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER}
|
- DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER}
|
||||||
- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
|
- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
|
||||||
|
- N8N_BASIC_AUTH_ACTIVE=true
|
||||||
|
- N8N_BASIC_AUTH_USER
|
||||||
|
- N8N_BASIC_AUTH_PASSWORD
|
||||||
ports:
|
ports:
|
||||||
- 5678:5678
|
- 5678:5678
|
||||||
links:
|
links:
|
||||||
|
|
Loading…
Reference in a new issue