This repository has been archived on 2021-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
rstudio/compose.yml

52 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2021-05-12 09:43:43 +00:00
---
version: "3.8"
services:
app:
image: rocker/tidyverse:4.1.0
2021-05-12 09:43:43 +00:00
networks:
- proxy
2021-05-17 13:54:59 +00:00
volumes:
- home:/home
2021-05-17 14:31:06 +00:00
- library:/usr/local/lib/R/site-library/
2021-05-17 13:54:59 +00:00
secrets:
- admin_password
environment:
- DOMAIN=${DOMAIN}
2021-05-17 13:54:59 +00:00
- PASSWORD_FILE=/run/secrets/admin_password
- ROOT=TRUE
2021-05-17 13:54:59 +00:00
configs:
- source: custom_entrypoint
target: /docker-entrypoint.sh
2021-05-17 13:54:59 +00:00
mode: 0555
2021-05-12 09:43:43 +00:00
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
2021-05-17 13:54:59 +00:00
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8787"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
2021-05-12 09:43:43 +00:00
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
entrypoint: /docker-entrypoint.sh
command: /init
2021-05-12 09:43:43 +00:00
2021-05-17 13:54:59 +00:00
volumes:
home:
2021-05-17 14:30:00 +00:00
library:
2021-05-17 13:54:59 +00:00
2021-05-12 09:43:43 +00:00
networks:
proxy:
external: true
2021-05-17 13:54:59 +00:00
configs:
custom_entrypoint:
name: ${STACK_NAME}_custom_entrypoint_${CUSTOM_ENTRYPOINT_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang
2021-05-17 13:54:59 +00:00
secrets:
admin_password:
name: ${STACK_NAME}_admin_password_${SECRET_ADMIN_PASSWORD_VERSION}
external: true