-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 966 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 966 Bytes
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.4'
services:
sampleapp.mssqlserver:
image: mcr.microsoft.com/mssql/server:2017-latest-ubuntu
container_name: sampleapp.mssqlserver
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=${MSSQLSERVER_PWD}
- MSSQL_PID=Express
mem_limit: 3048M
mem_reservation: 512M
ports:
- 1433:1433
networks:
- sample-app
sampleapp.identity.api:
image: ${DOCKER_REGISTRY-}identityapi
container_name: sampleapp.identity.api
build:
context: .
dockerfile: Identity.API/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Production
- DB_SERVER=sampleapp.mssqlserver
- DB_PORT=1433
- DATABASE=IdentityServerDB
- DB_USER=${MSSQLSERVER_UNAME}
- DB_PASSWORD=${MSSQLSERVER_PWD}
ports:
- 8080:80
depends_on:
- "sampleapp.mssqlserver"
networks:
- sample-app
restart: always
networks:
sample-app:
driver: bridge