Update codimd db user

pull/1/head
Alexandre Iooss 5 years ago
parent 1f77064303
commit c4e3c76775
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02

@ -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…
Cancel
Save