Browse Source

Add postgresql image to docker-compose

pull/36/head
EngincanV 5 years ago
parent
commit
309524f540
  1. 5
      etc/docker/docker-compose.infrastructure.override.yml
  2. 10
      etc/docker/docker-compose.infrastructure.yml
  3. 2
      src/EventHub.BackgroundServices/appsettings.json
  4. 2
      src/EventHub.DbMigrator/appsettings.json
  5. 2
      src/EventHub.HttpApi.Host/appsettings.json
  6. 2
      src/EventHub.IdentityServer/appsettings.json

5
etc/docker/docker-compose.infrastructure.override.yml

@ -3,4 +3,7 @@ version: '3.7'
services:
redis:
ports:
- "6379:6379"
- "6379:6379"
postgresql:
ports:
- "5432:5432"

10
etc/docker/docker-compose.infrastructure.yml

@ -5,7 +5,15 @@ services:
image: redis:6.0.10-alpine
networks:
- eventhub-network
postgresql:
image: postgres
restart: always
environment:
POSTGRES_USER: "root"
POSTGRES_PASSWORD: "root"
networks:
- eventhub-network
networks:
eventhub-network:
external: true

2
src/EventHub.BackgroundServices/appsettings.json

@ -1,6 +1,6 @@
{
"ConnectionStrings": {
"Default": "Host=localhost;Database=EventHub;Username=postgres;Password=1q2w3E*"
"Default": "Host=localhost;Database=EventHub;Username=root;Password=root;Port=5432"
},
"Redis": {
"Configuration": "127.0.0.1"

2
src/EventHub.DbMigrator/appsettings.json

@ -1,6 +1,6 @@
{
"ConnectionStrings": {
"Default": "Host=localhost;Database=EventHub;Username=postgres;Password=1q2w3E*"
"Default": "Host=localhost;Database=EventHub;Username=root;Password=root;Port=5432"
},
"IdentityServer": {
"Clients": {

2
src/EventHub.HttpApi.Host/appsettings.json

@ -3,7 +3,7 @@
"CorsOrigins": "https://*.EventHub.com,https://localhost:44307,https://localhost:44308"
},
"ConnectionStrings": {
"Default": "Host=localhost;Database=EventHub;Username=postgres;Password=1q2w3E*"
"Default": "Host=localhost;Database=EventHub;Username=root;Password=root;Port=5432"
},
"Redis": {
"Configuration": "127.0.0.1"

2
src/EventHub.IdentityServer/appsettings.json

@ -5,7 +5,7 @@
"RedirectAllowedUrls": "http://localhost:4200,https://localhost:44307"
},
"ConnectionStrings": {
"Default": "Host=localhost;Database=EventHub;Username=postgres;Password=1q2w3E*"
"Default": "Host=localhost;Database=EventHub;Username=root;Password=root;Port=5432"
},
"Redis": {
"Configuration": "127.0.0.1"

Loading…
Cancel
Save