forked from benarch/Azure-IPAM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.21 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:
# Azure Functions API
api:
build:
context: ../../api
dockerfile: ../deploy/local/Dockerfile.api
ports:
- "7071:7071"
environment:
- AZURE_TENANT_ID=${AZURE_TENANT_ID}
- AZURE_CLIENT_ID=${AZURE_CLIENT_ID}
- AZURE_CLIENT_SECRET=${AZURE_CLIENT_SECRET}
- AzureWebJobsStorage=UseDevelopmentStorage=true
- FUNCTIONS_WORKER_RUNTIME=node
volumes:
- ../../api/src:/app/src:ro
networks:
- ipam-network
# React Frontend
frontend:
build:
context: ../../frontend
dockerfile: ../deploy/local/Dockerfile.frontend
ports:
- "3000:3000"
environment:
- VITE_AZURE_TENANT_ID=${VITE_AZURE_TENANT_ID}
- VITE_AZURE_CLIENT_ID=${VITE_AZURE_CLIENT_ID}
- VITE_API_BASE_URL=http://localhost:7071/api
volumes:
- ../../frontend/src:/app/src:ro
depends_on:
- api
networks:
- ipam-network
# Azurite (Azure Storage Emulator) for Functions runtime
azurite:
image: mcr.microsoft.com/azure-storage/azurite:latest
ports:
- "10000:10000"
- "10001:10001"
- "10002:10002"
networks:
- ipam-network
networks:
ipam-network:
driver: bridge