forked from fresh2dev/ShinyStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (53 loc) · 1.52 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
version: '3.5'
services:
nginx:
image: nginx
restart: always
volumes:
- './nginx.conf:/etc/nginx/nginx.conf:z'
- './config/container/letsencrypt:/etc/letsencrypt:z'
- 'certbot_data:/var/www/certbot'
ports:
- ${HTTP_PORT}:80
- ${HTTPS_PORT}:${HTTPS_PORT}
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot:
image: certbot/certbot
restart: unless-stopped
volumes:
- './config/container/letsencrypt:/etc/letsencrypt'
- 'certbot_data:/var/www/certbot'
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
shinystudio:
build:
context: .
dockerfile: Dockerfile
args:
tag: ${IMAGE_TAG}
restart: always
depends_on:
- influxdb
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- './config/container/img:/opt/shinyproxy/templates/grid-layout/assets/img:z'
- "./application.yml:/opt/shinyproxy/application.yml:z"
environment:
- APPLICATION_LOGS_TO_STDOUT=false
- SITE_NAME=${COMPOSE_PROJECT_NAME}
- CONTENT_PATH=${CONTENT_PATH}
#- USER=${USER}
- USERID=${USERID}
influxdb:
image: influxdb
restart: always
volumes:
- 'influxdb_data:/var/lib/influxdb'
environment:
- INFLUXDB_DB=shinyproxy_usagestats
- INFLUXDB_REPORTING_DISABLED=true
volumes:
influxdb_data:
certbot_data:
r_libraries:
py_environment:
pwsh_modules: