-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
47 lines (46 loc) · 1.27 KB
/
docker-compose.dev.yml
File metadata and controls
47 lines (46 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
services:
db:
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
SA_PASSWORD: "{{Jouw wachtwoord}}"
ACCEPT_EULA: "Y"
healthcheck:
test: [ "CMD", "bash", "-c", "echo > /dev/tcp/localhost/1433" ]
interval: 10s
timeout: 5s
retries: 10
volumes:
- mssqldata:/var/opt/mssql
web:
build:
context: ./Server
dockerfile: Dockerfile
depends_on:
db:
condition: service_healthy
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__{{JouwConnectieNaam}}=Server=db;Database={{Jouwdatabasenaam}};User=sa;Password={{Jouw wachtwoord}};TrustServerCertificate=True;Encrypt=True
# Do not publish backend directly; proxy will route /api to this service
client:
build:
context: ./Client
dockerfile: Dockerfile
depends_on:
- web
# Do not publish frontend directly; proxy will serve the frontend on host port 80
restart: unless-stopped
proxy:
image: nginx:stable-alpine
ports:
- "80:80"
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
web:
condition: service_started
client:
condition: service_started
restart: unless-stopped
volumes:
mssqldata: