-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yaml
52 lines (46 loc) · 1.33 KB
/
docker-compose.yaml
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
version: '3'
# This docker-compose is for developer convenience, not for running in production.
services:
# For running the Flask server and tests
re_api:
build:
context: .
dockerfile: Dockerfile
args:
DEVELOPMENT: 1
ports:
- "127.0.0.1:5000:5000"
volumes:
- ${PWD}:/app
depends_on:
- auth
- workspace
- arangodb
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
- SPEC_RELEASE_PATH=/app/relation_engine_server/test/spec_release/spec.tar.gz
- DB_URL=http://arangodb:8529
- DB_USER=root
- RE_API_URL=http://127.0.0.1:5000
# A mock kbase auth server (see src/test/mock_auth/endpoints.json)
auth:
image: mockservices/mock_json_service
volumes:
- ${PWD}/relation_engine_server/test/mock_auth:/config
# Mock workspace server (see src/test/mock_workspace/endpoints.json)
workspace:
image: mockservices/mock_json_service
volumes:
- ${PWD}/relation_engine_server/test/mock_workspace:/config
# Arangodb server in cluster mode
arangodb:
image: arangodb:3.9
ports:
- "127.0.0.1:8529:8529"
command: sh -c "arangodb --starter.local"