-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1.75 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (52 loc) · 1.75 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
version: '3.8'
services:
# ===========================================
# BACKEND - .NET 9 API
# ===========================================
api:
build:
context: .
dockerfile: src/backend/Dockerfile
container_name: ppro-api
restart: unless-stopped
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:5000
- ConnectionStrings__MySQL=Server=newdataserver.mysql.database.azure.com;Port=3306;Database=ppro;Uid=dataserver_wp;Pwd=wpadm@753;SslMode=Required;CharSet=utf8mb4;
- ConnectionStrings__Redis=${REDIS_CONNECTION_STRING}
- ConnectionStrings__Hangfire=Server=newdataserver.mysql.database.azure.com;Port=3306;Database=hangfire_ppro;Uid=dataserver_wp;Pwd=wpadm@753;SslMode=Required;CharSet=utf8mb4;
- Jwt__Secret=${JWT_SECRET:-PartnershipManager_SecretKey_2025_Min32Chars!}
- Jwt__Issuer=${JWT_ISSUER:-PartnershipManager}
- Jwt__Audience=${JWT_AUDIENCE:-PartnershipManagerApp}
- Cors__Origins=${CORS_ORIGINS:-http://localhost:3000,http://localhost:5173,http://frontend:3000}
- Email__FrontendUrl=${FRONTEND_URL:-http://localhost:3000}
volumes:
- contract_storage:/app/storage
ports:
- "5000:5000"
networks:
- pm-network
# ===========================================
# FRONTEND - React + Vite
# ===========================================
frontend:
build:
context: ./src/frontend
dockerfile: Dockerfile
target: development
container_name: ppro-frontend
restart: unless-stopped
ports:
- "3000:3000"
depends_on:
- api
volumes:
- ./src/frontend:/app
- /app/node_modules
networks:
- pm-network
networks:
pm-network:
driver: bridge
volumes:
contract_storage: