change USERNAME and PASSWORD to FLOWISE_USERNAME and FLOWISE_PASSWORD to prevent conflict with machine env variables

This commit is contained in:
Henry
2023-05-27 20:23:18 +01:00
parent dc4fe13b12
commit 0f0d887f78
12 changed files with 29 additions and 37 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
PORT=3000
USERNAME=user
PASSWORD=1234
# FLOWISE_USERNAME=user
# FLOWISE_PASSWORD=1234
+4 -4
View File
@@ -11,13 +11,13 @@ Starts Flowise from [DockerHub Image](https://hub.docker.com/repository/docker/f
## With Authrorization
1. Create `.env` file and specify the `PORT`, `USERNAME`, and `PASSWORD` (refer to `.env.example`)
2. Pass `USERNAME` and `PASSWORD` to the `docker-compose.yml` file:
1. Create `.env` file and specify the `PORT`, `FLOWISE_USERNAME`, and `FLOWISE_PASSWORD` (refer to `.env.example`)
2. Pass `FLOWISE_USERNAME` and `FLOWISE_PASSWORD` to the `docker-compose.yml` file:
```
environment:
- PORT=${PORT}
- USERNAME=${USERNAME}
- PASSWORD=${PASSWORD}
- FLOWISE_USERNAME=${FLOWISE_USERNAME}
- FLOWISE_PASSWORD=${FLOWISE_PASSWORD}
```
3. `docker-compose up -d`
4. Open [http://localhost:3000](http://localhost:3000)
+2
View File
@@ -6,6 +6,8 @@ services:
restart: always
environment:
- PORT=${PORT}
- FLOWISE_USERNAME=${FLOWISE_USERNAME}
- FLOWISE_PASSWORD=${FLOWISE_PASSWORD}
ports:
- '${PORT}:${PORT}'
volumes: