-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
35 lines (32 loc) · 1.25 KB
/
docker-compose.override.yml
File metadata and controls
35 lines (32 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: '3.4'
services:
customerdb:
container_name: customerdb
restart: always
ports:
- "1433:1433"
environment:
SA_PASSWORD: "P@ssw0rd"
ACCEPT_EULA: "Y"
cachedb:
container_name: cachedb
restart: always
ports:
- "6379:6379"
repositorywithcaching.webapi:
container_name: repositorywithcachingapi
restart: on-failure
environment:
- ASPNETCORE_ENVIRONMENT=Development
- DOTNET_RUNNING_IN_CONTAINER=true # Might be redundant snce most images have this predefined
- "ConnectionStrings:DefaultConnection=Data Source=customerdb,1433;Database=CustomersDb;User ID=sa;Password=P@ssw0rd" #override the connection string from appSettings: point to the sql server container
- "ConnectionStrings:Redis=cachedb:6379" #override the connection string from appSettings: point to the redis container
- "UseInMemoryDatabase:false"
depends_on:
- customerdb
- cachedb
volumes:
- ${HOME}/.microsoft/usersecrets/:/root/.microsoft/usersecrets
- ${HOME}/.aspnet/https/:/root/.aspnet/https/
ports:
- "8000:80"