-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
61 lines (56 loc) · 1.33 KB
/
docker-compose.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '3'
services:
webapp:
build:
context: ./Sources
dockerfile: Dockerfile
environment:
- AuthServiceUrl=http://localhost:5001/api/auth
- MachineDataServiceUrl=http://localhost:5005/api/machinedata
ports:
- "5000:5000"
depends_on:
- authservice
- machinedataservice
authservice:
build:
context: ./Sources
dockerfile: Dockerfile-Auth
container_name: authservice
environment:
- ConnectionString=Server=sqlserver;Database=MachineDataDatabase;UserId=SA;Pwd=p@ssword
ports:
- "5001:5001"
networks:
- workshopnet
depends_on:
- sqlserver
machinedataservice:
build:
context: ./Sources
dockerfile: Dockerfile-MachineData
container_name: machinedataservice
environment:
- ConnectionString=Server=sqlserver;Database=MachineDataDatabase;UserId=SA;Pwd=p@ssword
ports:
- "5005:5005"
networks:
- workshopnet
depends_on:
- sqlserver
sqlserver:
image: microsoft/mssql-server-linux:latest
container_name: sqlserver
environment:
- SA_PASSWORD=p@ssw0rd
- ACCEPT_EULA=Y
volumes:
- D:\sqlstoragewin:/var/opt/mssql
networks:
- workshopnet
ports:
- "1433:1433"
volumes:
db-data:
networks:
workshopnet: