Update codimd db user
This commit is contained in:
parent
1f77064303
commit
c4e3c76775
2 changed files with 8 additions and 8 deletions
|
@ -6,9 +6,9 @@ services:
|
||||||
# You need to migrate the Database to the new PostgreSQL version
|
# You need to migrate the Database to the new PostgreSQL version
|
||||||
image: postgres:9.6-alpine
|
image: postgres:9.6-alpine
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=hackmd
|
- POSTGRES_USER=codimd
|
||||||
- POSTGRES_PASSWORD=hackmdpass
|
- POSTGRES_PASSWORD=codimdpass
|
||||||
- POSTGRES_DB=hackmd
|
- POSTGRES_DB=codimd
|
||||||
volumes:
|
volumes:
|
||||||
- ./data_db:/var/lib/postgresql/data
|
- ./data_db:/var/lib/postgresql/data
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -21,7 +21,7 @@ services:
|
||||||
- "CODIMD_REPOSITORY=https://github.com/codimd/server.git"
|
- "CODIMD_REPOSITORY=https://github.com/codimd/server.git"
|
||||||
environment:
|
environment:
|
||||||
# DB_URL is formatted like: <databasetype>://<username>:<password>@<hostname>/<database>
|
# DB_URL is formatted like: <databasetype>://<username>:<password>@<hostname>/<database>
|
||||||
- CMD_DB_URL=postgres://hackmd:hackmdpass@database:5432/hackmd
|
- CMD_DB_URL=postgres://codimd:codimdpass@database:5432/codimd
|
||||||
ports:
|
ports:
|
||||||
- "8081:3000"
|
- "8081:3000"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
"urlAddPort": false,
|
"urlAddPort": false,
|
||||||
"email": false,
|
"email": false,
|
||||||
"db": {
|
"db": {
|
||||||
"username": "hackmd",
|
"username": "codimd",
|
||||||
"password": "hackmdpass",
|
"password": "codimdpass",
|
||||||
"database": "hackmd",
|
"database": "codimd",
|
||||||
"host": "hackmdPostgres",
|
"host": "database",
|
||||||
"port": "5432",
|
"port": "5432",
|
||||||
"dialect": "postgres"
|
"dialect": "postgres"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue