-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (61 loc) · 1.43 KB
/
docker-compose.yml
File metadata and controls
64 lines (61 loc) · 1.43 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
services:
db:
image: postgres:13
environment:
POSTGRES_PASSWORD: xmtp
ports:
- 25432:5432
networks:
- xnet
notification_server:
build:
context: .
environment:
DB_CONNECTION_STRING: "postgres://postgres:xmtp@db:5432/postgres?sslmode=disable"
LOG_ENCODING: console
API_PORT: "8080"
dns:
- ${COREDNS_IP:-172.18.0.2}
depends_on:
- db
healthcheck:
test: ["CMD-SHELL", "wget -q -O /dev/null http://localhost:8080/readyz"]
interval: 2s
timeout: 2s
retries: 30
networks:
- xnet
command:
- --xmtp-listener
- --api
- --listener-type=${LISTENER_TYPE:-v4}
- --xmtp-address=${XMTP_LISTENER_ADDRESS:-xnet-100:5050}
- --http-delivery
- --http-delivery-address=http://integration:7777/post
- --api-port=8080
integration:
build:
context: ./integration
dockerfile: Dockerfile
expose:
- 7777
volumes:
- ./integration/src:/usr/app/src:ro
dns:
- ${COREDNS_IP:-172.18.0.2}
depends_on:
notification_server:
condition: service_healthy
environment:
- XMTP_NODE_URL=${XMTP_CLIENT_URL:-http://xnet-node:5556}
- NOTIFICATION_SERVER_URL=http://notification_server:8080
- XMTP_GATEWAY_URL=${XMTP_GATEWAY_URL:-}
networks:
- xnet
command:
- npx
- vitest
- run
networks:
xnet:
external: true