forked from sandrokeil/arangodb-php-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (33 loc) · 857 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: '2'
services:
# To compile run docker-compose run --rm arangodb-php-driver-builder
arangodb-php-driver-builder:
image: arangodb-php-driver-builder
build:
context: ./
dockerfile: Dockerfile.builder
volumes:
- "./:/app"
command: bash -c "rm -rf src/main.o && make"
# To run tests docker-compose run --rm phptester php test.php
phptester:
image: arangodb-php-driver-tester
depends_on:
- arangodb-php-driver-builder
build:
context: ./
dockerfile: Dockerfile
environment:
arangodb_host: "vst://arangodb:8529"
arangodb_username: ""
arangodb_password: ""
arangodb_dbname: _system
volumes:
- "./:/app"
command: ["php", "test.php"]
arangodb:
image: arangodb:3.2.0
ports:
- 8529:8529
environment:
- ARANGO_NO_AUTH=1