-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.44 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: '3.5'
services:
gql-portal-redis:
image: redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
networks:
- graphql-portal
gql-portal-mongo:
image: mongo
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
networks:
- graphql-portal
gql-portal-dashboard:
image: gqlportal/dashboard
depends_on:
- gql-portal-redis
- gql-portal-mongo
ports:
- 3030:3030
- 8080:8080
networks:
- graphql-portal
environment:
- REDIS_CONNECTION_STRING=redis://gql-portal-redis:6379
- MONGODB_CONNECTION_STRING=mongodb://gql-portal-mongo:27017/graphql-portal-dashboard
- GRAPHQL_PLAYGROUND=true
- PUBLIC_HOST=http://localhost:3030
- CLIENT_HOST=http://localhost:8080
gql-portal-gateway:
image: gqlportal/gateway
depends_on:
- gql-portal-redis
- gql-portal-dashboard
ports:
- "3000:3000"
networks:
- graphql-portal
volumes:
- ./config-examples/with-dashboard:/opt/graphql-portal/config/
environment:
- REDIS_CONNECTION_STRING=redis://gql-portal-redis:6379
- DASHBOARD_CONNECTION_STRING=http://gql-portal-dashboard:3030
command:
- "/bin/sh"
- "-c"
- "echo 'Waiting for 10 seconds for Dashboard to come online...' && /bin/sleep 10 && cd /opt/graphql-portal && graphql-portal"
volumes:
redis-data:
mongo-data:
networks:
graphql-portal: