-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
41 lines (40 loc) · 1.35 KB
/
docker-compose.yaml
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
36
37
38
39
40
41
version: '3'
services:
notsocialnetwork_api:
build:
context: .
dockerfile: Src/Presentation/NotSocialNetwork.API/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+;http://+
- ASPNETCORE_HTTPS_PORT=5001
- PersistenceModule__DefaultConnection=Server=sql1;User Id=SA;Password=<YourStrong!Passw0rddD>;Database=NotSocialNetworkDB;
volumes:
- ${APPDATA}\microsoft\UserSecrets\:/root/.microsoft/usersecrets
- ${USERPROFILE}\.aspnet\https:/root/.aspnet/https/
depends_on:
- sql1
- notsocialnetwork_seed
ports:
- "5000:80"
- "5001:443"
notsocialnetwork_seed:
build:
context: .
dockerfile: NotSocialNetworkSeed/Dockerfile
environment:
- PersistenceModule__DefaultConnection=Server=sql1;User Id=SA;Password=<YourStrong!Passw0rddD>;Database=NotSocialNetworkDB;
command: bash -c "/root/.dotnet/tools/dotnet-ef database update --project Src/Infrastructure/NotSocialNetwork.DBContexts --startup-project Src/Presentation/NotSocialNetwork.API"
depends_on:
- sql1
healthcheck:
interval: 30s
timeout: 10s
retries: 5
sql1:
image: "mcr.microsoft.com/mssql/server:2019-latest"
environment:
SA_PASSWORD: "<YourStrong!Passw0rddD>"
ACCEPT_EULA: "Y"
ports:
- "1433:1433"