-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
52 lines (47 loc) · 1.27 KB
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
version: "3.8"
services:
api:
build:
context: .
dockerfile: Dockerfile
ports:
- "5228:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__DefaultConnection=Server=sqlserver;Database=shiftdrop;User Id=sa;Password=YourStrong@Password;TrustServerCertificate=True
- Auth0__Authority=${AUTH0_AUTHORITY:-https://dev-example.us.auth0.com/}
- Auth0__Audience=${AUTH0_AUDIENCE:-https://api.shiftdrop.local}
depends_on:
sqlserver:
condition: service_healthy
networks:
- shiftdrop
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
ACCEPT_EULA: "Y"
MSSQL_SA_PASSWORD: "YourStrong@Password"
ports:
- "1433:1433"
volumes:
- sqlserver_data:/var/opt/mssql
healthcheck:
test: /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P "YourStrong@Password" -Q "SELECT 1" -C || exit 1
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
networks:
- shiftdrop
# Optional: Redis for SignalR backplane (future scaling)
# redis:
# image: redis:7-alpine
# ports:
# - "6379:6379"
# networks:
# - shiftdrop
volumes:
sqlserver_data:
networks:
shiftdrop:
driver: bridge