-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
164 lines (151 loc) · 4.44 KB
/
Copy pathdocker-compose.yml
File metadata and controls
164 lines (151 loc) · 4.44 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
services:
nginx:
image: nginx:alpine
restart: always
ports:
- "${HTTP_PORT:-8080}:80"
- "${HTTPS_PORT:-443}:443"
volumes:
- ./infra/edge-routing/nginx.conf:/etc/nginx/nginx.conf:ro
- ./infra/edge-routing/ssl:/etc/nginx/ssl:ro
depends_on:
- web-app
- gateway-api
- martin
- otel-collector
ngrok:
image: ngrok/ngrok:latest
environment:
- NGROK_AUTHTOKEN=${NGROK_AUTHTOKEN}
command: "http nginx:80"
ports:
- "${NGROK_PORT:-4040}:4040"
depends_on:
- nginx
web-app:
image: node:22-slim
working_dir: /app
volumes:
- ./apps/web-app:/app
- /app/node_modules
command: sh -c "npm install && npm run dev"
environment:
- PUBLIC_API_URL=${PUBLIC_API_URL:-http://localhost/api}
gateway-api:
image: rust:1.88-slim
working_dir: /app
volumes:
- .:/app
- cargo-cache:/usr/local/cargo/registry
- gateway-target:/root/target
command: sh -c "apt-get update && apt-get install -y protobuf-compiler && cargo run -p gateway-api"
environment:
- CARGO_TARGET_DIR=/root/target
- DATABASE_URL=postgres://${DB_USER:-postgres}:${DB_PASSWORD:-postgres}@postgres:5432/${DB_NAME:-jumpa}
- SCYLLA_URI=${SCYLLA_URI:-scylladb:9042}
- REDIS_URL=${REDIS_URL:-redis://redis:6379}
- SPATIAL_ENGINE_URL=${SPATIAL_ENGINE_URL:-http://spatial-compute:50051}
- OTEL_EXPORTER_OTLP_ENDPOINT=${OTEL_EXPORTER_OTLP_ENDPOINT:-http://otel-collector:4317}
depends_on:
postgres:
condition: service_healthy
scylladb:
condition: service_started
redis:
condition: service_started
spatial-compute:
condition: service_started
spatial-compute:
image: rust:1.88-slim
working_dir: /app
volumes:
- .:/app
- cargo-cache:/usr/local/cargo/registry
- spatial-target:/root/target
command: sh -c "apt-get update && apt-get install -y protobuf-compiler && cargo run -p spatial-compute"
environment:
- CARGO_TARGET_DIR=/root/target
- OTEL_EXPORTER_OTLP_ENDPOINT=${OTEL_EXPORTER_OTLP_ENDPOINT:-http://otel-collector:4317}
postgres:
image: postgis/postgis:16-3.4-alpine
environment:
- POSTGRES_USER=${DB_USER:-postgres}
- POSTGRES_PASSWORD=${DB_PASSWORD:-postgres}
- POSTGRES_DB=${DB_NAME:-jumpa}
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d ${DB_NAME:-jumpa}"]
interval: 5s
timeout: 5s
retries: 5
scylladb:
image: scylladb/scylla:latest
command: --smp 1 --memory 1G --developer-mode 1
volumes:
- scylla-data:/var/lib/scylla
redis:
image: redis:alpine
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER:-admin}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD:-password}
volumes:
- minio-data:/data
martin:
image: ghcr.io/maplibre/martin:v0.15.0
restart: always
environment:
- DATABASE_URL=postgres://${DB_USER:-postgres}:${DB_PASSWORD:-postgres}@postgres:5432/${DB_NAME:-jumpa}
volumes:
- ./infra/martin/data:/data
- ./infra/martin/config.yaml:/config.yaml:ro
command: ["--config", "/config.yaml"]
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/catalog"]
interval: 10s
timeout: 5s
retries: 3
depends_on:
postgres:
condition: service_healthy
otel-collector:
image: otel/opentelemetry-collector:latest
volumes:
- ./infra/observability/otel-config.yaml:/etc/otelcol/config.yaml:ro
ports:
- "4317:4317"
- "4318:4318"
depends_on:
- tempo
tempo:
image: grafana/tempo:latest
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./infra/observability/tempo.yaml:/etc/tempo.yaml:ro
- tempo-data:/var/tempo
ports:
- "3200:3200"
- "4317"
grafana:
image: grafana/grafana:latest
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
ports:
- "${GRAFANA_PORT:-3001}:3000"
volumes:
- ./infra/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
depends_on:
- tempo
volumes:
postgres-data:
scylla-data:
minio-data:
tempo-data:
cargo-cache:
gateway-target:
spatial-target: