-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (56 loc) · 1.76 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
55
56
57
58
59
60
61
# Modified copy of the rocker/shiny compose template:
# https://github.com/rocker-org/shiny/blob/master/docker-compose.yml
version: "3.0"
services:
phytofit:
container_name: phytofit
# To build the image locally, comment out "image" below, and uncomment
# "build" and the lines indented under it.
# image: rocker/shiny
image: cioosatlantic/phytofit
# build:
# context: .
# dockerfile: Dockerfile
restart: always
# Setting this to something other than 'root' will cause shiny apps not to
# run on the localhost:80 "Welcome to Shiny" diagnostics page mentioned
# below.
user: 'root'
# Uncomment the lines below to disable application logs STDOUT output
# environment:
# - APPLICATION_LOGS_TO_STDOUT=false
ports:
# - '80:3838'
- 0.0.0.0:3838:3838
# - "0.0.0.0:7520:7520"
volumes:
- "./shiny_logs:/var/log/shiny-server"
# - "./data:/data"
- "./data:/srv/shiny-server/phytofit/data"
# Comment the line below out for initial testing. With it commented out,
# going to localhost:80 in one's web browser will show a "Welcome to
# Shiny Server!" diagnostics page.
# - './mountpoints/apps:/srv/shiny-server'
data_download:
depends_on:
- phytofit
image: cioosatlantic/phytofit
command: >
/bin/sh -c '
cd /srv/shiny-server/phytofit && yes | Rscript 00_download_new_datasets.R
'
volumes:
- "./data:/srv/shiny-server/phytofit/data"
data_update:
depends_on:
- phytofit
image: cioosatlantic/phytofit
command: >
/bin/sh -c '
cd /srv/shiny-server/phytofit && yes | Rscript 00_update_datasets.R
'
volumes:
- "./data:/srv/shiny-server/phytofit/data"
volumes:
shiny_logs:
data: