-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
91 lines (86 loc) · 2.7 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
include:
- path:
- ./shared/mock-db.yml
services:
# PORT 8100 ~ metadata-manager
metadata-manager:
environment:
- DB_HOSTNAME=db
- DB_PORT=5432
- PYTHONUNBUFFERED=1
ports:
- '8100:8000'
build:
context: ./lib/workload/stateless/stacks/metadata-manager
dockerfile: Dockerfile
depends_on:
- db
healthcheck:
test: "curl --fail --silent --write-out 'HTTP CODE : %{http_code}\n' --output /dev/null http://localhost:8000/api/v1"
start_period: 30s
interval: 10s
timeout: 2s
retries: 5
# PORT 8200 ~ workflow-manager
workflow-manager:
environment:
- DB_HOSTNAME=db
- DB_PORT=5432
- PYTHONUNBUFFERED=1
ports:
- '8200:8000'
build:
context: ./lib/workload/stateless/stacks/workflow-manager
dockerfile: Dockerfile
depends_on:
- db
healthcheck:
test: "curl --fail --silent --write-out 'HTTP CODE : %{http_code}\n' --output /dev/null http://localhost:8000/api/v1"
start_period: 30s
interval: 10s
timeout: 2s
retries: 5
# PORT 8300 ~ sequence-run-manager
sequence-run-manager:
environment:
- DB_HOSTNAME=db
- DB_PORT=5432
- PYTHONUNBUFFERED=1
ports:
- '8300:8000'
build:
context: ./lib/workload/stateless/stacks/sequence-run-manager
dockerfile: Dockerfile
depends_on:
- db
healthcheck:
test: "curl --fail --silent --write-out 'HTTP CODE : %{http_code}\n' --output /dev/null http://localhost:8000/api/v1"
start_period: 30s
interval: 10s
timeout: 2s
retries: 5
# PORT 8400 ~ filemanager
filemanager:
environment:
# Container database address for running server inside a docker container.
- DATABASE_URL=postgresql://orcabus:orcabus@db:5432/filemanager
- RUST_LOG=debug
- FILEMANAGER_API_CORS_ALLOW_ORIGINS=${FILEMANAGER_API_CORS_ALLOW_ORIGINS:-http://localhost:3000}
- FILEMANAGER_API_CORS_ALLOW_HEADERS=${FILEMANAGER_API_CORS_ALLOW_HEADERS:-accept,authorization,content-type,user-agent,x-csrftoken,x-requested-with,x-amz-security-token,x-amz-date,content-disposition}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-access_key_id}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:-secret_access_key}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION:-ap-southeast-2}
- AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN:-session_token}
ports:
- '8400:8000'
build:
context: ./lib/workload/stateless/stacks/filemanager
dockerfile: Dockerfile
depends_on:
- db
healthcheck:
test: "curl http://localhost:8000/api/v1/s3/count"
start_period: 30s
interval: 10s
timeout: 2s
retries: 5