-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (53 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
53 lines (53 loc) · 1.51 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
version: "3.8"
services:
datadownload:
build:
context: .
dockerfile: Dockerfile
image: $IMAGE_ID
volumes:
- type: bind
source: ./data
target: /data
environment:
R_CONFIG_ACTIVE: docker
FRED_KEY: ${FRED_KEY}
UI_EXPLORER_GOOGLE_PASSWORD: ${UI_EXPLORER_GOOGLE_PASSWORD}
shinyappsdeploy:
# deploy the app to shinyapps and download and process the data.
build:
context: .
dockerfile: DockerfileDeployShinyApps
#image: $IMAGE_ID
environment:
R_CONFIG_ACTIVE: docker
FRED_KEY: ${FRED_KEY}
SHINYAPPS_SECRET: ${SHINYAPPS_SECRET}
SHINYAPPS_TOKEN: ${SHINYAPPS_TOKEN}
SHINYAPPS_ACCOUNT: ${SHINYAPPS_ACCOUNT}
command: >
bash -c "/Rscripts/unemploymentDataProcessor.R && /Rscripts/deployShinyApps.R"
volumes:
- type: bind
source: ./data
target: /Rscripts/data
shinyappsdeploywithrelease:
# deploy the app to shinyapps using the github-released version of the data.
# (this does not download the release - it assumes the release is present)
build:
context: .
dockerfile: DockerfileDeployShinyApps
#image: $IMAGE_ID
environment:
R_CONFIG_ACTIVE: docker
FRED_KEY: ${FRED_KEY}
SHINYAPPS_SECRET: ${SHINYAPPS_SECRET}
SHINYAPPS_TOKEN: ${SHINYAPPS_TOKEN}
SHINYAPPS_ACCOUNT: ${SHINYAPPS_ACCOUNT}
command: /Rscripts/deployShinyApps.R
volumes:
- type: bind
source: ./data
target: /Rscripts/data
volumes:
data: