chore: correct db creds format + mount local dir

* ./ instead of $PWD means that the mounted folder is not where the
  command is run from but rather the folder local to the compose file
* use proper db creds format
This commit is contained in:
surtur 2020-12-26 17:02:24 +01:00
parent 82d075dd01
commit 779c349ff6
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"db": {
"Postgre": "host=db,port=5432,database=pwt;username=postgres;password=679968312e029a806c1905c40ec331aa199a1eb86bd0b9eb04057933e449bdc9ef8ef292a39b68cafa5689c901a17266",
"Postgre": "User ID=postgres;Password=679968312e029a806c1905c40ec331aa199a1eb86bd0b9eb04057933e449bdc9ef8ef292a39b68cafa5689c901a17266;Server=db;Port=5432;Database=pwt;Integrated Security=true;Pooling=true;",
"MySQL": "server=db,Database=pwt-0x01-ng;Port=3306;user=root;password=679968312e029a806c1905c40ec331aa199a1eb86bd0b9eb04057933e449bdc9ef8ef292a39b68cafa5689c901a17266;"
},
"Logging": {

View File

@ -8,7 +8,7 @@ services:
ports:
- 127.0.0.1:8001:5000
volumes:
- $PWD:/src
- ./:/src
environment:
ASPNETCORE_ENVIRONMENT: Development
DB_CONNECTION_STRING: "User ID=postgres;Password=679968312e029a806c1905c40ec331aa199a1eb86bd0b9eb04057933e449bdc9ef8ef292a39b68cafa5689c901a17266;Server=db;Port=5432;Database=pwt;Integrated Security=true;Pooling=true;"