forked from canada-ca/tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
31 lines (30 loc) · 830 Bytes
/
docker-compose.yaml
File metadata and controls
31 lines (30 loc) · 830 Bytes
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
version: "3.7"
services:
envoy: # proxies localhost:3000 to containers based on rules in config
image: envoyproxy/envoy-alpine-dev
entrypoint: envoy
command: ["-c", "/etc/envoy-dev.yaml", "--service-cluster", "envoy"]
volumes:
- ./envoy-dev.yaml:/etc/envoy-dev.yaml # Envoy configuration
expose:
- "3000" # Forward to proxied apps
- "3001" # Envoy admin page
ports:
- "3000:3000"
- "3001:3001"
frontend: # localhost:3000/* is sent to frontend
image: node:alpine
working_dir: /app
command: npm run dev
volumes:
- ./:/app
expose:
- "3000"
api: # available at localhost:3000/graphql
image: apisguru/graphql-faker
volumes:
- ./schema.faker.graphql:/workdir/schema.faker.graphql
expose:
- "9002"
volumes:
driver: {}