-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (48 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
49 lines (48 loc) · 1.21 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
version: '3'
services:
web:
image: node:8-alpine
ports:
- 3000:3000
working_dir: /app
volumes:
- ./js:/app
command: >
/bin/ash -c "[[ -d node_modules ]] || yarn && yarn start"
networks:
- go-graphql-subscription-example
server:
build: go
ports:
- 5000:5000
environment:
OPENTSDB_HOST: opentsdb:4242
working_dir: /go/src/github.com/yeouchien/go-graphql-subscription-example
volumes:
- .:/go/src/github.com/yeouchien/go-graphql-subscription-example
command: ["go", "run", "go/server/main.go" ]
networks:
- go-graphql-subscription-example
links:
- opentsdb
publisher:
build: go
environment:
SERVER_URL: http://server:5000/graphql
working_dir: /go/src/github.com/yeouchien/go-graphql-subscription-example
volumes:
- .:/go/src/github.com/yeouchien/go-graphql-subscription-example
command: ["go", "run", "go/publisher/main.go" ]
networks:
- go-graphql-subscription-example
links:
- server
opentsdb:
image: spdigital/opentsdb
ports:
- 4242:4242
- 16010:16010
networks:
- go-graphql-subscription-example
networks:
go-graphql-subscription-example: