forked from microsoft/github-copilot-vibe-coding-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
39 lines (36 loc) · 868 Bytes
/
Copy pathcompose.yaml
File metadata and controls
39 lines (36 loc) · 868 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
version: '3.8'
networks:
contoso:
driver: bridge
services:
contoso-backend:
build:
context: .
dockerfile: Dockerfile.java
container_name: contoso-backend
ports:
- "8080:8080"
environment:
- CODESPACE_NAME=${CODESPACE_NAME}
- GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN=${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}
networks:
- contoso
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 3s
start_period: 60s
retries: 3
contoso-frontend:
build:
context: .
dockerfile: Dockerfile.dotnet
container_name: contoso-frontend
ports:
- "3030:8080"
environment:
- ApiSettings__BaseUrl=http://contoso-backend:8080/api
networks:
- contoso
depends_on:
- contoso-backend