forked from phase2/grunt-drupal-tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
35 lines (32 loc) · 928 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
version: '3.4'
x-custom:
environment: &environment
COMPOSER_CACHE_DIR: /root/.cache/composer
NODE_VERSION: 6
NPM_CONFIG_CACHE: /root/.cache/npm
GDT_QUIET: 1
volumes: &volumes
- .:/code
# Persist the cache directories associated with various tools.
# The first volume mount covers: npm, composer, bower, fontconfig, & yarn
- /data/gdt/cache:/root/.cache
- /data/gdt/cache/drush:/root/.drush/cache
- /data/gdt/cache/behat_gherkin:/tmp/behat_gherkin_cache
services:
cli:
image: outrigger/build:php56
container_name: gdt
environment: *environment
entrypoint: ["/init"]
command: ["bash"]
network_mode: bridge
volumes: *volumes
working_dir: /code
test:
image: outrigger/build:php56
container_name: gdt
environment: *environment
entrypoint: ["/init", "npm", "test"]
network_mode: bridge
volumes: *volumes
working_dir: /code