-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
86 lines (85 loc) · 2.5 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3'
services:
npm:
build:
context: .
dockerfile: Dockerfile.npm
args:
node_version: ${NODE_VERSION}
image: elifesciences/pattern-library_npm:${IMAGE_TAG}
assets-builder:
build:
context: .
dockerfile: Dockerfile.assets-builder
args:
environment: ${ENVIRONMENT}
image_tag: ${IMAGE_TAG}
node_version: ${NODE_VERSION}
image: elifesciences/pattern-library_assets-builder:${IMAGE_TAG}
stop_grace_period: 1s
depends_on:
- npm
assets:
build:
context: .
dockerfile: Dockerfile.assets
args:
image_tag: ${IMAGE_TAG}
description: ${DESCRIPTION}
image: elifesciences/pattern-library_assets:${IMAGE_TAG}
depends_on:
- assets-builder
composer:
build:
context: .
dockerfile: Dockerfile.composer
image: elifesciences/pattern-library_composer:${IMAGE_TAG}
command: /bin/bash
ui-builder:
build:
context: .
dockerfile: Dockerfile.ui-builder
args:
image_tag: ${IMAGE_TAG}
image: elifesciences/pattern-library_ui-builder:${IMAGE_TAG}
stop_grace_period: 1s
depends_on:
- assets
- composer
ui:
build:
context: .
dockerfile: Dockerfile
args:
image_tag: ${IMAGE_TAG}
image: elifesciences/pattern-library:${IMAGE_TAG}
ports:
- "8889:80"
depends_on:
- ui-builder
# TODO move to docker-compose.ci.yml
ci:
build:
context: .
dockerfile: Dockerfile.ci
args:
image_tag: ${IMAGE_TAG}
image: elifesciences/pattern-library_ci:${IMAGE_TAG}
command: sleep infinity
depends_on:
- assets-builder
- ui
- selenium
selenium:
build:
context: .
dockerfile: Dockerfile.selenium
args:
selenium_image_suffix: ${SELENIUM_IMAGE_SUFFIX}
image: elifescience/pattern-library_selenium:${IMAGE_TAG}
ports:
- "4444:4444" # WebDriver protocol
- "5900:5900" # VNC
volumes:
# https://github.com/SeleniumHQ/docker-selenium#running-the-images
- /dev/shm:/dev/shm