-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (51 loc) · 1.34 KB
/
Copy pathdocker-compose.yml
File metadata and controls
57 lines (51 loc) · 1.34 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
name: order-processing-system
services:
frontend:
container_name: react-frontend
build:
context: ./src/Frontend/book-store-app/
dockerfile: Dockerfile
image: ordprosys/frontend
depends_on:
- backend
ports:
- "5174:5174"
networks:
- net
environment:
- VITE_API_BASE_URL=http://localhost:8080/api
backend:
container_name: dotnet-backend
build:
context: ./src/Backend/
image: ordprosys/backend
depends_on:
- db
environment:
ASPNETCORE_ENVIRONMENT: Development # or Production (set accordingly)
ASPNETCORE_URLS: "http://+:8080"
ConnectionStrings__PostgresConnection: "Host=postgres-db;Port=5432;Database=ordprosys;Username=postgres;Password=postgres;Pooling=true;Minimum Pool Size=5;Maximum Pool Size=100;Connection Idle Lifetime=300;Connection Pruning Interval=60;Timeout=30;CommandTimeout=30"
ports:
- "8080:8080"
networks:
- net
db:
container_name: postgres-db
build:
context: ./src/Database/
image: ordprosys/database
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ordprosys
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- net
volumes:
db_data:
networks:
net:
driver: bridge