Update codimd db user

This commit is contained in:
Alexandre Iooss 2019-07-22 12:47:48 +02:00
parent 1f77064303
commit c4e3c76775
No known key found for this signature in database
GPG key ID: 6C79278F3FCDCC02
2 changed files with 8 additions and 8 deletions

View file

@ -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:

View file

@ -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"
},