-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.override.yml
76 lines (69 loc) · 1.75 KB
/
docker-compose.override.yml
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
services:
catalogdb:
container_name: catalogdb
restart: always
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
basketdb:
container_name: basketdb
restart: always
ports:
- "6379:6379"
discountdb:
container_name: discountdb
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin
- POSTGRES_DB=DiscountDb
restart: always
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U admin -d DiscountDb"]
interval: 30s
timeout: 10s
retries: 5
catalog.api:
container_name: catalog.api
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_HTTPS_PORTS=8081
- "DatabaseSettings__ConnectionString=mongodb://catalogdb:27017"
ports:
- "8081:8081"
basket.api:
container_name: basket.api
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_HTTPS_PORTS=8083
- "DatabaseSettings__ConnectionString=basketdb:6379"
- "GrpcSettings__DiscountUrl=https://discount.api:8085"
ports:
- "8083:8083"
discount.api:
container_name: discount.api
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_HTTPS_PORTS=8085
- "DatabaseSettings__ConnectionString=Server=discountdb;Port=5432;Database=DiscountDb;Username=admin;Password=admin"
depends_on:
discountdb:
condition: service_healthy
ports:
- "8085:8085"
portainer:
container_name: portainer
restart: always
ports:
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
volumes:
mongo_data:
portainer_data:
postgres_data: