forked from openwit-oss/openwit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
141 lines (134 loc) · 3.89 KB
/
docker-compose.yaml
File metadata and controls
141 lines (134 loc) · 3.89 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
services:
postgres:
image: postgres:15-alpine
container_name: openwit-postgres
environment:
POSTGRES_DB: ${POSTGRES_DB:-openwit}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-openwit_dev_password}
ports:
- '5432:5432'
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- openwit_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]
interval: 10s
timeout: 5s
retries: 5
openwit-cp:
container_name: openwit-cp
image: ghcr.io/middleware-labs/openwit:latest
# Uncomment to build locally:
# build:
# context: .
# dockerfile: Dockerfile
# target: openwit
command:
- openwit
- '--config'
- /openwit/config/openwit-unified-control.yaml
- control
environment:
- POSTGRES_URL=${POSTGRES_URL:-postgresql://postgres:openwit_dev_password@postgres:5432/openwit}
- CONTROL_PLANE_GRPC_ENDPOINT=${CONTROL_PLANE_GRPC_ENDPOINT:-http://openwit-cp:7019}
- RUST_LOG=${RUST_LOG:-info}
ports:
- '7019:7019'
volumes:
- openwit-cp-data:/openwit/data/
- ./config:/openwit/config:ro
networks:
- openwit_network
depends_on:
postgres:
condition: service_healthy
openwit-ingest:
container_name: openwit-ingest
image: ghcr.io/middleware-labs/openwit:latest
# Uncomment to build locally:
# build:
# context: .
# dockerfile: Dockerfile
# target: openwit
command:
- openwit
- '--config'
- /openwit/config/openwit-unified-control.yaml
- ingest
- '--force-grpc'
environment:
- POSTGRES_URL=${POSTGRES_URL:-postgresql://postgres:openwit_dev_password@postgres:5432/openwit}
- CONTROL_PLANE_GRPC_ENDPOINT=${CONTROL_PLANE_GRPC_ENDPOINT:-http://openwit-cp:7019}
- RUST_LOG=${RUST_LOG:-info}
ports:
- '4317:4317'
- '9087:9087'
volumes:
- openwit-ingest-data:/openwit/data/
- ./config:/openwit/config:ro
networks:
- openwit_network
depends_on:
- postgres
- openwit-cp
openwit-storage:
container_name: openwit-storage
image: ghcr.io/middleware-labs/openwit:latest
command:
- openwit
- '--config'
- /openwit/config/openwit-unified-control.yaml
- storage
environment:
- POSTGRES_URL=${POSTGRES_URL:-postgresql://postgres:openwit_dev_password@postgres:5432/openwit}
- CONTROL_PLANE_GRPC_ENDPOINT=${CONTROL_PLANE_GRPC_ENDPOINT:-http://openwit-cp:7019}
- AZURE_STORAGE_ACCOUNT=${AZURE_STORAGE_ACCOUNT}
- AZURE_STORAGE_ACCESS_KEY=${AZURE_STORAGE_ACCESS_KEY}
- AZURE_STORAGE_CONTAINER=${AZURE_STORAGE_CONTAINER}
- AZURE_STORAGE_ENDPOINT=${AZURE_STORAGE_ENDPOINT}
- RUST_LOG=${RUST_LOG:-info}
ports:
- '8081:8081'
- '9401:9401'
volumes:
- openwit-storage-data:/openwit/data/
- ./config:/openwit/config:ro
networks:
- openwit_network
depends_on:
- postgres
- openwit-cp
openwit-search:
container_name: openwit-search
image: ghcr.io/middleware-labs/openwit:latest
command:
- openwit
- '--config'
- /openwit/config/openwit-unified-control.yaml
- search
environment:
- POSTGRES_URL=${POSTGRES_URL:-postgresql://postgres:openwit_dev_password@postgres:5432/openwit}
- CONTROL_PLANE_GRPC_ENDPOINT=${CONTROL_PLANE_GRPC_ENDPOINT:-http://openwit-cp:7019}
- RUST_LOG=${RUST_LOG:-info}
ports:
- '8083:8083'
volumes:
- openwit-search-data:/openwit/data/
- ./config:/openwit/config:ro
networks:
- openwit_network
depends_on:
- postgres
- openwit-cp
- openwit-storage
volumes:
postgres-data:
openwit-cp-data:
openwit-ingest-data:
openwit-storage-data:
openwit-search-data:
networks:
openwit_network:
driver: bridge