-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1.82 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
version: "3.0"
services:
shiny:
container_name: shiny
image: rocker/shiny:${SHINY_TAG:-4.0.2}
restart: always
# Uncomment the lines below to disable application logs STDOUT output
environment:
- TZ=Europe/Madrid
# - APPLICATION_LOGS_TO_STDOUT=false
ports:
- ${SHINY_PORT:-3838}:3838
volumes:
- './shiny_logs:/var/log/shiny-server'
# 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.
#- './apps:/srv/shiny-server'
- './shiny-server.conf:/etc/shiny-server/shiny-server.conf:ro'
- './s6-deps-run:/etc/cont-init.d/s6-deps-run:ro'
- './apps/progeny:/srv/shiny-server/progeny'
- 'progeny_renv_libs:/srv/shiny-server/progeny/renv/library'
- 'progeny_renv_staging:/srv/shiny-server/progeny/renv/staging'
- './apps/dorothea:/srv/shiny-server/dorothea'
- 'dorothea_renv_libs:/srv/shiny-server/dorothea/renv/library'
- 'dorothea_renv_staging:/srv/shiny-server/dorothea/renv/staging'
depends_on:
- shiny_pre
shiny_pre:
image: rocker/shiny:${SHINY_TAG:-4.0.2}
environment:
- TZ=Europe/Madrid
volumes:
- 'progeny_renv_libs:/srv/shiny-server/progeny/renv/library'
- 'progeny_renv_staging:/srv/shiny-server/progeny/renv/staging'
- 'dorothea_renv_libs:/srv/shiny-server/dorothea/renv/library'
- 'dorothea_renv_staging:/srv/shiny-server/dorothea/renv/staging'
command: chown -R shiny
/srv/shiny-server/progeny/renv/library
/srv/shiny-server/progeny/renv/staging
/srv/shiny-server/dorothea/renv/library
/srv/shiny-server/dorothea/renv/staging
volumes:
dorothea_renv_libs:
dorothea_renv_staging:
progeny_renv_libs:
progeny_renv_staging: