-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
112 lines (104 loc) · 2.99 KB
/
Copy pathdocker-compose.yml
File metadata and controls
112 lines (104 loc) · 2.99 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: open-edge-platform
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: edge_platform
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_MULTIPLE_DATABASES: edge_platform,edge_platform_control
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./scripts/init-postgres.sh:/docker-entrypoint-initdb.d/init.sh:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d edge_platform"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
rabbitmq:
image: rabbitmq:3.13-management-alpine
ports:
- "5672:5672"
- "15672:15672"
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "ping"]
interval: 10s
timeout: 5s
retries: 10
service-broker:
build:
context: .
dockerfile: src/ServiceBroker/ServiceBroker.Api/Dockerfile
image: open-edge-platform/service-broker:dev
environment:
ASPNETCORE_ENVIRONMENT: Production
ConnectionStrings__Postgres: Host=postgres;Database=edge_platform;Username=postgres;Password=postgres
ConnectionStrings__RabbitMq: amqp://guest:guest@rabbitmq:5672
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
rabbitmq:
condition: service_healthy
provisioning-worker:
build:
context: .
dockerfile: src/Provisioning/Provisioning.Worker/Dockerfile
image: open-edge-platform/provisioning-worker:dev
environment:
DOTNET_ENVIRONMENT: Production
ConnectionStrings__Postgres: Host=postgres;Database=edge_platform;Username=postgres;Password=postgres
ConnectionStrings__RabbitMq: amqp://guest:guest@rabbitmq:5672
depends_on:
postgres:
condition: service_healthy
rabbitmq:
condition: service_healthy
control-plane:
build:
context: .
dockerfile: src/ControlPlane/ControlPlane.Api/Dockerfile
image: open-edge-platform/control-plane:dev
environment:
ASPNETCORE_ENVIRONMENT: Production
ConnectionStrings__Postgres: Host=postgres;Database=edge_platform_control;Username=postgres;Password=postgres
ConnectionStrings__RabbitMq: amqp://guest:guest@rabbitmq:5672
ConnectionStrings__Redis: redis:6379
ports:
- "8081:8081"
- "18000:18000"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
envoy:
build:
context: ./infra/envoy
image: open-edge-platform/envoy:dev
environment:
REGION: us-east-1
POD_NAME: envoy-edge-1
CONTROL_PLANE_HOST: control-plane
CONTROL_PLANE_PORT: "18000"
ports:
- "10000:10000"
- "9901:9901"
depends_on:
- control-plane
volumes:
postgres-data: