-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
46 lines (42 loc) · 1.1 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
version: '3'
services:
app:
build: https://github.com/getyoti/doc-scan-sandbox-test-app.git#0.2.0
env_file:
- ./.env
environment:
- YOTI_KEY_FILE_PATH=/usr/src/keys/privateKey.pem
- YOTI_CLIENT_SDK_ID=${YOTI_SANDBOX_CLIENT_SDK_ID}
- YOTI_DOC_SCAN_API_URL=${YOTI_DOC_SCAN_API_URL}
volumes:
- ${YOTI_KEY_FILE_PATH}:/usr/src/keys/privateKey.pem
ports:
- "3000:3000"
depends_on:
- selenium
selenium:
image: selenium/standalone-chrome
container_name: selenium
volumes:
- ./resources:/usr/src/resources
ports:
- "4444:4444"
test:
image: php:7-fpm-alpine
command: ./vendor/bin/behat --colors
env_file:
- ./.env
environment:
- YOTI_KEY_FILE_PATH=/usr/src/keys/privateKey.pem
- YOTI_SANDBOX_CLIENT_SDK_ID=${YOTI_SANDBOX_CLIENT_SDK_ID}
volumes:
- ./:/var/www/html
- ${YOTI_KEY_FILE_PATH}:/usr/src/keys/privateKey.pem
depends_on:
- app
composer:
image: composer
volumes:
- ../../:/app
working_dir: /app/examples/doc-scan
command: update