-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (77 loc) · 2.31 KB
/
docker-compose.yml
File metadata and controls
81 lines (77 loc) · 2.31 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
71
72
73
74
75
76
77
78
79
80
81
services:
postgres:
platform: linux/amd64
image: postgres:18.1
container_name: cooktime-postgres
environment:
POSTGRES_DB: cooktime
POSTGRES_USER: cooktime
POSTGRES_PASSWORD: development
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U cooktime -d cooktime"]
interval: 10s
timeout: 5s
retries: 5
azurite:
platform: linux/amd64
image: mcr.microsoft.com/azure-storage/azurite:3.35.0
container_name: cooktime-azurite
ports:
- "10000:10000" # Blob service
- "10001:10001" # Queue service
- "10002:10002" # Table service
volumes:
- azurite-data:/data
command: azurite-blob --blobHost 0.0.0.0 --blobPort 10000
api:
platform: linux/amd64
build:
context: src/CookTime
dockerfile: Dockerfile
container_name: cooktime-api
working_dir: /src
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: http://+:5001
ConnectionStrings__Postgres: "Host=postgres;Database=cooktime;Username=cooktime;Password=development;Include Error Detail=true"
ConnectionStrings__AzureBlobStorage: "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;"
ports:
- "5001:5000"
depends_on:
postgres:
condition: service_healthy
azurite:
condition: service_started
volumes:
- ${API_SOURCE_MOUNT:-./src/CookTime}:/src
- ${API_OBJ_MOUNT:-api-obj}:/src/obj
- ${API_BIN_MOUNT:-api-bin}:/src/bin
- ${HOME}/.microsoft/usersecrets:/root/.microsoft/usersecrets:ro
- ${HOME}/.azure:/root/.azure
command: ["dotnet", "watch", "run", "--non-interactive"]
webapp:
platform: linux/amd64
build:
context: src/CookTime/client-app
dockerfile: Dockerfile
container_name: cooktime-webapp
environment:
ASPNETCORE_URLS: http://api:5000
PORT: 80
ports:
- "3000:80"
depends_on:
- api
volumes:
- ./src/CookTime/client-app/src:/app/src
command: ["npm", "run", "dev"]
volumes:
postgres-data:
azurite-data:
api-obj:
api-bin:
api-source: