-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (53 loc) · 1.79 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
47
48
49
50
51
52
53
54
---
services:
workflow.pacta.dashboard:
build: .
# stdin_open: true
# tty: true
# entrypoint: ["R", "--args"]
command: '{\"portfolio\": {\"files\": [\"default_portfolio.csv\"], \"holdingsDate\": \"2023-12-31\", \"name\": \"FooPortfolio\"}, \"inherit\": \"GENERAL_2023Q4\"}'
environment:
LOG_LEVEL: TRACE
ANALYSIS_OUTPUT_DIR: "/mnt/analysis_output_dir"
BENCHMARKS_DIR: "/mnt/benchmarks_dir"
DASHBOARD_DATA_DIR: "/mnt/dashboard_output_dir/data"
DASHBOARD_OUTPUT_DIR: "/mnt/dashboard_output_dir"
PACTA_DATA_DIR: "/mnt/pacta-data"
PORTFOLIO_DIR: "/mnt/portfolios"
volumes:
- type: bind
source: ${data_dir:-./pacta-data/}
target: /mnt/pacta-data
read_only: true
- type: bind
source: ${input_dir:-./tests/portfolios/}
target: /mnt/portfolios
read_only: true
- type: bind
source: ${benchmarks_dir:-./benchmarks_dir}
target: /mnt/benchmarks_dir/
read_only: true
- type: bind
source: ${analysis_output_dir:-./analysis_output_dir}
target: /mnt/analysis_output_dir
read_only: false
- type: bind
source: ${dashboard_data_dir:-./dashboard_output_dir/data}
target: /mnt/dashboard_output_dir/data
read_only: false
- type: bind
source: ${dashboard_output_dir:-./dashboard_output_dir}
target: /mnt/dashboard_output_dir
read_only: false
server:
image: nginx:alpine
ports:
- 3000:80
volumes:
- type: bind
source: ${dashboard_output_dir:-./dashboard_output_dir}
target: /usr/share/nginx/html
read_only: false
depends_on:
workflow.pacta.dashboard:
condition: service_completed_successfully # build-app acts as an init container