This repository was archived by the owner on Aug 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
58 lines (51 loc) · 1.38 KB
/
docker-compose.yaml
File metadata and controls
58 lines (51 loc) · 1.38 KB
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
version: '3'
# This docker-compose is for developer convenience and testing, not for running in production.
services:
# General python container for executing tests
spec:
build: .
volumes:
- ${PWD}:/app
depends_on:
- re_api
environment:
- DB_URL=http://arangodb:8529
- DB_USER=root
- RE_API_URL=http://re_api:5000
# Relation Engine API
re_api:
image: kbase/relation_engine_api:develop
ports:
- "127.0.0.1:5000:5000"
depends_on:
- arangodb
- auth
- workspace
environment:
- WORKERS=2
- DEVELOPMENT=1
- FLASK_ENV=development
- FLASK_DEBUG=1
- KBASE_AUTH_URL=http://auth:5000
- KBASE_WORKSPACE_URL=http://workspace:5000
- PYTHONUNBUFFERED=true
- DB_URL=http://arangodb:8529
- DB_USER=root
volumes:
- ".:/spec/repo"
# Arangodb server in cluster mode
arangodb:
image: arangodb:3.5
ports:
- "127.0.0.1:8529:8529"
command: sh -c "arangodb --starter.local"
# A mock kbase auth server (see src/test/mock_auth/endpoints.json)
auth:
image: mockservices/mock_json_service
volumes:
- ${PWD}/test/mock_services/mock_auth:/config
# Mock workspace server (see src/test/mock_workspace/endpoints.json)
workspace:
image: mockservices/mock_json_service
volumes:
- ${PWD}/test/mock_services/mock_workspace:/config