-
Notifications
You must be signed in to change notification settings - Fork 653
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 895 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (38 loc) · 895 Bytes
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
services:
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-express
container_name: wms-sqlserver
environment:
SA_PASSWORD: "YourStrong!Passw0rd"
ACCEPT_EULA: "Y"
MSSQL_PID: "Express"
volumes:
- mssql_data_wms:/var/opt/mssql
networks:
- wms-network
healthcheck:
test: /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P "YourStrong!Passw0rd" -C -Q "SELECT 1" || exit 1
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
api:
build: .
container_name: wms-api
ports:
- "5000:5000"
environment:
ASPNETCORE_ENVIRONMENT: Docker
depends_on:
sqlserver:
condition: service_healthy
networks:
- wms-network
volumes:
- app_data_wms:/app/wwwroot/app_data
volumes:
mssql_data_wms:
app_data_wms:
networks:
wms-network:
driver: bridge