-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.ci.yml
50 lines (48 loc) · 1.38 KB
/
docker-compose.ci.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
version: '3'
services:
composer:
build:
args:
composer_dev_arg: --no-dev
composer-dev:
build:
context: .
dockerfile: Dockerfile.composer
args:
composer_dev_arg:
image: elifesciences/journal_composer_dev:${IMAGE_TAG}
command: /bin/bash
selenium:
image: selenium/standalone-chrome${SELENIUM_IMAGE_SUFFIX}:2.53.1
ports:
- "4444:4444" # http://localhost:4444/wd/hub/static/resource/hub.html
- "5900:5900" # VNC connection for debug images
volumes:
- /dev/shm:/dev/shm
ci:
build:
context: .
dockerfile: Dockerfile.ci
args:
image_tag: ${IMAGE_TAG}
image: elifesciences/journal_ci:${IMAGE_TAG}
volumes:
- ./.docker/php.ini:/usr/local/etc/php/conf.d/x-dev.ini
- ./.docker/parameters.yml:/srv/journal/app/config/parameters.yml
- fixtures:/srv/journal/var/fixtures
environment:
- APP_ENV=ci
depends_on:
- composer-dev
- app
- selenium
app:
volumes:
- fixtures:/srv/journal/var/fixtures
environment:
- APP_ENV=ci
web:
volumes:
- ./assets/tests:/srv/journal/web/tests
volumes:
fixtures: