Browse Source

Moved mongo into composition. User internal network names.

pull/81/head
Halil İbrahim Kalkan 10 years ago
parent
commit
9a7e2d4660
  1. 8
      docker/docker-compose.yml
  2. 1
      docker/up.ps1
  3. 8
      src/AbpDesk/AbpDesk.Web.Mvc/appsettings.Staging.json
  4. 4
      src/Volo.Abp.Identity.HttpApi.Host/appsettings.Staging.json

8
docker/docker-compose.yml

@ -1,14 +1,22 @@
version: '2'
services:
mongodb:
image: tutum/mongodb
environment:
- AUTH=no
abpidentity_httpapihost:
image: abpidentity/httpapihost
environment:
- ASPNETCORE_ENVIRONMENT=Staging
abpdesk_web:
image: abpdesk/web
environment:
- ASPNETCORE_ENVIRONMENT=Staging
load_balancer:
image: haproxy:1.7.1
volumes:

1
docker/up.ps1

@ -1,4 +1,5 @@
docker rm $(docker ps -aq)
docker-compose up -d mongodb
docker-compose up -d abpidentity_httpapihost
docker-compose up -d abpdesk_web
sleep 2

8
src/AbpDesk/AbpDesk.Web.Mvc/appsettings.Staging.json

@ -1,11 +1,11 @@
{
"ConnectionStrings": {
"Default": "Server=192.168.1.36;Database=AbpDesk;User=sa;Password=123qwe;",
"AbpDeskMongoBlog": "mongodb://192.168.1.36:27017|AbpDeskBlog"
"Default": "Server=10.0.75.1;Database=AbpDesk;User=sa;Password=123qwe;",
"AbpDeskMongoBlog": "mongodb://outputs_mongodb_1:27017|AbpDeskBlog"
},
"AbpIdentity": {
"HttpProxy": {
"HttpApiClient": {
"ApiUrlBase": "http://outputs_abpidentity_httpapihost_1/"
}
}
}
}

4
src/Volo.Abp.Identity.HttpApi.Host/appsettings.Staging.json

@ -1,5 +1,5 @@
{
"ConnectionStrings": {
"Default": "Server=192.168.1.36;Database=AbpDesk;User=sa;Password=123qwe;"
"Default": "Server=10.0.75.1;Database=AbpDesk;User=sa;Password=123qwe;"
}
}
}
Loading…
Cancel
Save