-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
28 lines (27 loc) · 973 Bytes
/
docker-compose.yaml
File metadata and controls
28 lines (27 loc) · 973 Bytes
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
services:
mock-quack-upstream:
image: python:3.12-alpine
command:
- python
- -c
- |
from http.server import BaseHTTPRequestHandler, HTTPServer
class H(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200); self.end_headers(); self.wfile.write(b'ok')
def do_POST(self):
body = self.rfile.read(int(self.headers.get('content-length', 0)))
self.send_response(200); self.send_header('content-type', 'application/duckdb'); self.end_headers(); self.wfile.write(body)
HTTPServer(('0.0.0.0', 9494), H).serve_forever()
ports:
- "9494:9494"
quackgate:
build: .
command: ["serve", "--config", "/etc/quackgate/quackgate.yaml"]
ports:
- "7494:7494"
volumes:
- ./examples/docker-compose/quackgate.yaml:/etc/quackgate/quackgate.yaml:ro
- ./data:/home/quackgate
depends_on:
- mock-quack-upstream