-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathdocker-compose.myHr.override.yml
36 lines (30 loc) · 1.37 KB
/
docker-compose.myHr.override.yml
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
version: '3.4'
# The default docker-compose.override file can use the "localhost" as the external name for testing web apps within the same dev machine.
# The ESHOP_EXTERNAL_DNS_NAME_OR_IP environment variable is taken, by default, from the ".env" file defined like:
# ESHOP_EXTERNAL_DNS_NAME_OR_IP=localhost
# but values present in the environment vars at runtime will always override those defined inside the .env file
# An external IP or DNS name has to be used (instead localhost and the 10.0.75.1 IP) when testing the Web apps and the Xamarin apps from remote machines/devices using the same WiFi, for instance.
services:
sqldata:
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=sAPWD23.^0
- MSSQL_TCP_PORT=1433
- MSSQL_AGENT_ENABLED=true
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__sqlserver:MyHr=Data Source=localhost,1433;Initial Catalog=My.Hr;User id=sa;Password=sAPWD23.^0;TrustServerCertificate=true
ports:
- "5433:1433"
volumes:
- myhr-sqldata:/var/opt/mssql
myhr-api:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
- Hr_ConnectionStrings__Database=Data Source=sqldata,1433;Initial Catalog=My.Hr;User id=sa;Password=sAPWD23.^0;TrustServerCertificate=true
- PORT=80
ports:
- "5103:80"
volumes:
myhr-sqldata:
external: false