-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 1.09 KB
/
docker-compose.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
# Running instructions:
# put your apollo key and graph ref in a `.env` file in the root folder EG:
# APOLLO_GRAPH_REF="YOUR_GRAPH_REF@YOUR_VARIANT"
# APOLLO_KEY="YOUR_APOLLO_KEY"
#
# run `docker-compose --env-file .env up -d`
#
# run the frontend:
# `npm i && npm run start`
version: '3.9'
services:
router:
environment:
APOLLO_KEY: ${APOLLO_KEY}
APOLLO_GRAPH_REF: ${APOLLO_GRAPH_REF}
CALLBACK_URL: ${CALLBACK_URL}
WAIT: true
build: router
ports:
- 4000:4000
depends_on:
- playback
- spotify
playback:
build:
# we use context . because we need access to the shared directory
context: .
dockerfile: subgraphs/playback/Dockerfile
# we don't need to use the ports directive since only the router needs to talk to subgraphs
expose:
- 4002
spotify:
build:
# we use context . because we need access to the shared directory
context: .
dockerfile: subgraphs/spotify/Dockerfile
# we don't need to use the ports directive since only the router needs to talk to subgraphs
expose:
- 4001