-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathdocker-compose.yaml
43 lines (39 loc) · 985 Bytes
/
docker-compose.yaml
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
version: '3.8'
services:
webapp:
build:
context: https://github.com/MayDay-wpf/AIBotPublic.git#main:aibotPro/aibotPro
dockerfile: Dockerfile
ports:
- "5000:80"
depends_on:
- db
- cache
volumes:
- app-wwwroot-files:/app/wwwroot/files
- app-wwwroot-aifiles:/app/wwwroot/AIFILES
db:
image: mcr.microsoft.com/mssql/server:2017-latest
environment:
SA_PASSWORD: "Abc123@#"
ACCEPT_EULA: "Y"
MSSQL_PID: "Express"
MSSQL_COLLATION: "Chinese_PRC_CI_AS"
ports:
- "1433:1433"
volumes:
- db-data:/var/opt/mssql
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "Abc123@#" -Q "SELECT 1"
interval: 30s
timeout: 20s
retries: 10
start_period: 30s
cache:
image: redis
ports:
- "6379:6379"
volumes:
db-data:
app-wwwroot-files:
app-wwwroot-aifiles: