-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yml
118 lines (118 loc) · 2.99 KB
/
docker-compose.example.yml
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
version: '3.9'
services:
ceramic-one:
image: public.ecr.aws/r5b3e0r5/3box/ceramic-one:latest
volumes:
- ceramic-one-data:/root/.ceramic-one
environment:
- CERAMIC_ONE_BIND_ADDRESS=0.0.0.0:5001
- CERAMIC_ONE_CORS_ALLOW_ORIGINS=*
- CERAMIC_ONE_NETWORK=in-memory
ports:
- '5001:5001'
- '9464:9464'
networks:
- superGraph
restart: 'unless-stopped'
ceramic:
image: ceramicnetwork/js-ceramic:latest
volumes:
- ceramic_daemon:/root/.ceramic
command: [
"--network=inmemory",
"--ipfs-api=http://ceramic-one:5001"
]
ports:
- '7007:7007'
environment:
- NODE_ENV=production
- CERAMIC_RECON_MODE=true
depends_on:
- ceramic-one
networks:
- superGraph
restart: unless-stopped
composedb:
image: akashafoundation/composedb-graphql:latest
environment:
- NODE_ENV=production
- CERAMIC_API_ENDPOINT=${CERAMIC_API_ENDPOINT}
- COMPOSEDB_GRAPHQL_PORT=${COMPOSEDB_GRAPHQL_PORT}
expose:
- "${COMPOSEDB_GRAPHQL_PORT}"
networks:
- superGraph
depends_on:
- ceramic
restart: unless-stopped
indexing:
image: akashafoundation/indexing-graphql:latest
environment:
- NODE_ENV=production
- CERAMIC_API_ENDPOINT=${CERAMIC_API_ENDPOINT}
- GRAPHQL_INDEXING_PORT=${GRAPHQL_INDEXING_PORT}
- DID_INDEXING_PRIVATE_KEY=${DID_INDEXING_PRIVATE_KEY}
- REDIS_CONNECTION_STRING=${REDIS_CONNECTION_STRING}
- NOTIFICATIONS_KEY_MNEMONIC=${NOTIFICATIONS_KEY_MNEMONIC}
- PUSH_CHANNEL_ID=${PUSH_CHANNEL_ID}
expose:
- "${GRAPHQL_INDEXING_PORT}"
depends_on:
- composedb
networks:
- superGraph
restart: unless-stopped
# gateway:
# image: akashafoundation/gateway-graphql:latest
# ports:
# - "5101:${GRAPHQL_GATEWAY_PORT}"
# environment:
# - NODE_ENV=production
# - GRAPHQL_GATEWAY_PORT=${GRAPHQL_GATEWAY_PORT}
# - REDIS_CONNECTION_STRING=${REDIS_CONNECTION_STRING}
# depends_on:
# - composedb
# - indexing
# networks:
# - superGraph
# restart: unless-stopped
router:
image: ghcr.io/apollographql/router:v1.56.0
environment:
- APOLLO_ROUTER_LOG=info
- APOLLO_TELEMETRY_DISABLED=true
volumes:
- type: bind
source: ./config/router.yaml
target: /dist/config/router.yaml
read_only: true
- type: bind
source: ./config/supergraph.graphql
target: /dist/schema/supergraph.graphql
read_only: true
command: [
"-c",
"/dist/config/router.yaml",
"-s",
"/dist/schema/supergraph.graphql"
]
depends_on:
- composedb
- indexing
networks:
- superGraph
- metrics-proxy
ports:
- "5101:4000"
- "8088:8088"
restart: unless-stopped
networks:
superGraph:
driver: bridge
metrics-proxy:
external: true
name: metrics-network
volumes:
ipfs_data: {}
ceramic_daemon: {}
ceramic-one-data: {}