Browse Source

Adjusted docker compose files for studio

pull/148/head
Yunus Emre Kalkan 5 months ago
parent
commit
57228a0e98
  1. 7
      etc/abp-studio/run-profiles/Default.abprun.json
  2. 9
      etc/docker/docker-compose.infrastructure.override.yml
  3. 2
      etc/docker/down.ps1
  4. 17
      etc/docker/infrastructure/postgres.yml
  5. 14
      etc/docker/infrastructure/redis.yml
  6. 2
      etc/docker/up.ps1

7
etc/abp-studio/run-profiles/Default.abprun.json

@ -42,5 +42,12 @@
"Admin": {},
"Public": {}
}
},
"containers": {
"files": {
"../../docker/infrastructure/redis.yml": {},
"../../docker/infrastructure/postgres.yml": {}
},
"serviceName": "EventHub"
}
}

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

@ -1,9 +0,0 @@
version: '3.7'
services:
redis:
ports:
- "6379:6379"
postgresql:
ports:
- "5432:5432"

2
etc/docker/down.ps1

@ -1 +1 @@
docker-compose -f docker-compose.infrastructure.yml -f docker-compose.infrastructure.override.yml down
docker-compose -f infrastructure/posgres.yml -f infrastructure/redis.yml down

17
etc/docker/docker-compose.infrastructure.yml → etc/docker/infrastructure/postgres.yml

@ -1,19 +1,18 @@
version: '3.7'
networks:
eventhub-network:
external: true
services:
redis:
image: redis:6.0.10-alpine
networks:
- eventhub-network
postgresql:
container_name: postgres
image: postgres
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: "root"
POSTGRES_PASSWORD: "root"
networks:
- eventhub-network
networks:
eventhub-network:
external: true
- eventhub-network

14
etc/docker/infrastructure/redis.yml

@ -0,0 +1,14 @@
version: '3.7'
networks:
eventhub-network:
external: true
services:
redis:
container_name: redis
image: redis:6.0.10-alpine
ports:
- "6379:6379"
networks:
- eventhub-network

2
etc/docker/up.ps1

@ -1,2 +1,2 @@
docker network create eventhub-network
docker-compose -f docker-compose.infrastructure.yml -f docker-compose.infrastructure.override.yml up -d --remove-orphans
docker-compose -f infrastructure/posgres.yml -f infrastructure/redis.yml up -d --remove-orphans
Loading…
Cancel
Save