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
|
||||
image: postgres:9.6-alpine
|
||||
environment:
|
||||
- POSTGRES_USER=hackmd
|
||||
- POSTGRES_PASSWORD=hackmdpass
|
||||
- POSTGRES_DB=hackmd
|
||||
- POSTGRES_USER=codimd
|
||||
- POSTGRES_PASSWORD=codimdpass
|
||||
- POSTGRES_DB=codimd
|
||||
volumes:
|
||||
- ./data_db:/var/lib/postgresql/data
|
||||
restart: always
|
||||
|
@ -21,7 +21,7 @@ services:
|
|||
- "CODIMD_REPOSITORY=https://github.com/codimd/server.git"
|
||||
environment:
|
||||
# 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:
|
||||
- "8081:3000"
|
||||
volumes:
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
"urlAddPort": false,
|
||||
"email": false,
|
||||
"db": {
|
||||
"username": "hackmd",
|
||||
"password": "hackmdpass",
|
||||
"database": "hackmd",
|
||||
"host": "hackmdPostgres",
|
||||
"username": "codimd",
|
||||
"password": "codimdpass",
|
||||
"database": "codimd",
|
||||
"host": "database",
|
||||
"port": "5432",
|
||||
"dialect": "postgres"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue