-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (65 loc) · 1.81 KB
/
docker-compose.yml
File metadata and controls
70 lines (65 loc) · 1.81 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
services:
# Just PostgreSQL for local development
# Start the app locally from /api (see README for uvicorn/Tailwind commands)
db:
image: postgres:16-alpine
ports:
- "127.0.0.1:54320:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=learn_to_cloud
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
azurite:
image: mcr.microsoft.com/azure-storage/azurite:latest
ports:
- "127.0.0.1:10000:10000"
- "127.0.0.1:10001:10001"
- "127.0.0.1:10002:10002"
command: >
azurite
--blobHost 0.0.0.0
--queueHost 0.0.0.0
--tableHost 0.0.0.0
--location /data
--silent
volumes:
- azurite_data:/data
dts:
image: mcr.microsoft.com/dts/dts-emulator:latest
ports:
- "127.0.0.1:8080:8080"
- "127.0.0.1:8082:8082"
aspire-dashboard:
image: mcr.microsoft.com/dotnet/aspire-dashboard:latest
ports:
- "127.0.0.1:18888:18888"
- "127.0.0.1:4317:18889"
- "127.0.0.1:4318:18890"
environment:
ASPIRE_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS: "true"
# Test service to reproduce multi-worker migration race condition
# Usage: docker compose up db api-multiworker --build
api-multiworker:
build:
context: .
dockerfile: api/Dockerfile
ports:
- "127.0.0.1:8000:8000"
environment:
- DATABASE_URL=postgresql+asyncpg://postgres:postgres@db:5432/learn_to_cloud
- GITHUB_TOKEN=test_token
- APPLICATIONINSIGHTS_CONNECTION_STRING=
depends_on:
db:
condition: service_healthy
# Uses default CMD from Dockerfile (single uvicorn worker)
volumes:
postgres_data:
azurite_data: