-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 1007 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 1007 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
29
30
31
32
33
34
35
36
37
38
39
40
41
# Docker Compose for local development with XMTP Gateway
# Usage: docker compose up -d
#
# First time setup:
# git clone https://github.com/xmtp/gateway-service-example.git gateway-service
#
# Then run: docker compose up -d
services:
redis:
image: redis:latest
ports:
- "6777:6777"
command: redis-server --port 6777
restart: unless-stopped
gateway:
build:
context: ./gateway-service
dockerfile: Dockerfile
depends_on:
- redis
env_file:
- .env.local
environment:
- XMTPD_REDIS_URL=redis://redis:6777
- XMTPD_API_PORT=5050
restart: unless-stopped
# gRPC-web proxy - translates browser gRPC-web requests to native gRPC
grpcwebproxy:
image: envoyproxy/envoy:v1.31-latest
ports:
- "5050:8080"
- "9901:9901" # Envoy admin interface for debugging
volumes:
- ./envoy.yaml:/etc/envoy/envoy.yaml:ro
- ./certs:/etc/envoy/certs:ro
depends_on:
- gateway
restart: unless-stopped