-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.demo.yml
More file actions
74 lines (69 loc) · 1.94 KB
/
Copy pathdocker-compose.demo.yml
File metadata and controls
74 lines (69 loc) · 1.94 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
services:
postgres:
image: postgres:16
environment:
POSTGRES_DB: agent_gateway
POSTGRES_USER: agent_gateway_admin
POSTGRES_PASSWORD: agent_gateway_dev
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U agent_gateway_admin -d agent_gateway"]
interval: 5s
timeout: 5s
retries: 12
volumes:
- agent-gateway-demo-postgres:/var/lib/postgresql/data
mock-services:
image: caddy:2-alpine
volumes:
- ./demo/mock/Caddyfile:/etc/caddy/Caddyfile:ro
- ./certs/mock-services.pem:/certs/mock-services.pem:ro
- ./certs/mock-services-key.pem:/certs/mock-services-key.pem:ro
networks:
default:
aliases:
- docstore
- messaging
gateway:
build:
context: .
dockerfile: demo/gateway.Dockerfile
image: agent-gateway-demo-gateway
working_dir: /workspaces/agent_gateway
command: --config config.toml
environment:
AGENT_GATEWAY_DATABASE_URL: postgres://agent_gateway_admin:agent_gateway_dev@postgres:5432/agent_gateway
ports:
- "8443:8443"
volumes:
- .:/workspaces/agent_gateway
depends_on:
- postgres
- mock-services
otel-collector:
image: otel/opentelemetry-collector:0.111.0
command: ["--config=/etc/otel-collector.yaml"]
volumes:
- ./agent-gateway-dashboard/otel-collector.yaml:/etc/otel-collector.yaml:ro
ports:
- "4317:4317"
depends_on:
postgres:
condition: service_healthy
dashboard:
condition: service_started
dashboard:
build:
context: ./agent-gateway-dashboard
ports:
- "3000:3000"
environment:
AGENT_GATEWAY_DATABASE_URL: postgres://agent_gateway_admin:agent_gateway_dev@postgres:5432/agent_gateway
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
postgres:
condition: service_healthy
volumes:
agent-gateway-demo-postgres: