-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
125 lines (116 loc) · 3 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# Please refer https://aka.ms/HTTPSinContainer on how to setup an https developer certificate for your ASP.NET Core service.
version: '3.4'
services:
magictserver:
image: magictserver
container_name: magictserver
build:
context: .
dockerfile: MagicT.Server/Dockerfile
ports:
- 5029:80
depends_on:
- azuresqledge
- redis
networks:
- mynetwork
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:5029"]
interval: 10s
timeout: 5s
retries: 3
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__MagicTContext=Server=azuresqledge,1433;Database=MagicTContext;User Id=sa;Password=LucidNala88!;TrustServerCertificate=true
- MagicTRedisConfig__ConnectionString=redis:6379
- Kestrel__EndpointDefaults__Protocols=Http2
- Certificate__CrtPath=/app/server.crt
- Certificate__KeyPath=/app/server.key
volumes:
- servervolume:/MagicT.Server:/app
magictswaggerserver:
image: magictswaggerserver
container_name: magictswaggerserver
build:
context: .
dockerfile: MagicT.Server/Dockerfile
ports:
- 5028:80
depends_on:
- azuresqledge
- redis
networks:
- mynetwork
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:5029"]
interval: 10s
timeout: 5s
retries: 3
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__MagicTContext=Server=azuresqledge,1433;Database=MagicTContext;User Id=sa;Password=LucidNala88!;TrustServerCertificate=true
- MagicTRedisConfig__ConnectionString=redis:6379
- Kestrel__EndpointDefaults__Protocols=Http1
magictweb:
image: magictweb
container_name: magictweb
build:
context: .
dockerfile: MagicT.Web/Dockerfile
ports:
- 5084:80
depends_on:
- magictserver
networks:
- mynetwork
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MagicTRedisConfig__ConnectionString=redis:6379
- API_BASE_URL__HTTP=http://magictserver
- API_BASE_URL__HTTPS=https://magictserver
redis:
image: redis:latest
container_name: redis
volumes:
- redisvolume:/data
ports:
- "6379:6379"
networks:
- mynetwork
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
restart: always
azuresqledge:
image: mcr.microsoft.com/azure-sql-edge
container_name: azuresqledge
volumes:
- sqlvolume:/var/opt/mssql
environment:
- ACCEPT_EULA=1
- MSSQL_SA_PASSWORD=LucidNala88!
ports:
- 1433:1433
cap_add:
- SYS_PTRACE
networks:
- mynetwork
healthcheck:
test:
- CMD
- curl
- --fail
- http://localhost:1433
interval: 10s
timeout: 5s
retries: 3
restart: always
volumes:
sqlvolume: null
redisvolume: null
servervolume: null
networks:
mynetwork:
driver: bridge