rstudio/compose.yml

54 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2021-05-12 09:43:43 +00:00
---
version: "3.8"
services:
app:
2024-01-17 21:24:24 +00:00
image: rocker/tidyverse:4.3.2
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:
2021-10-26 08:57:20 +00:00
- DEFAULT_LOCALES
- 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}"
2024-03-18 14:57:37 +00:00
- "coop-cloud.${STACK_NAME}.version=0.4.0+4.3.2"
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