-
Notifications
You must be signed in to change notification settings - Fork 79
/
docker-compose.yml
47 lines (42 loc) · 979 Bytes
/
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
version: "3"
services:
base:
image: chartjs-node-canvas-base
build:
context: .
dockerfile: docker/base/Dockerfile
container_name: chartjs-node-canvas-base
build:
image: chartjs-node-canvas-build
depends_on:
- base
build:
context: .
dockerfile: docker/build/Dockerfile
container_name: chartjs-node-canvas-build
test:
image: chartjs-node-canvas-build
container_name: chartjs-node-canvas-test
depends_on:
- build
environment:
- NODE_ENV=test
- FONTCONFIG_PATH=/etc/fonts
command: npm run test
production:
image: chartjs-node-canvas
depends_on:
- test
build:
context: .
dockerfile: docker/production/Dockerfile
container_name: chartjs-node-canvas
environment:
- NODE_ENV=production
#<< Docker Commands >>
# Build Images
#docker-compose build
# Run Containers
#docker-compose up
# Run Tests specifically
#docker-compose up test