-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.debug.yml
98 lines (86 loc) · 1.83 KB
/
docker-compose.debug.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
# 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
build:
context: .
dockerfile: MagicT.Server/Dockerfile
args:
- configuration=Debug
ports:
- 5029:5029
environment:
- ASPNETCORE_ENVIRONMENT=Development
volumes:
- ~/.vsdbg:/remote_debugger:rw
depends_on:
- azuresqledge
- redis
networks:
- mynetwork
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:80"]
interval: 10s
timeout: 5s
retries: 3
magictweb:
image: magictweb
build:
context: .
dockerfile: MagicT.Web/Dockerfile
args:
- configuration=Debug
ports:
- 5084:5084
environment:
- ASPNETCORE_ENVIRONMENT=Development
volumes:
- ~/.vsdbg:/remote_debugger:rw
depends_on:
- 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
networks:
mynetwork:
driver: bridge