-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
59 lines (54 loc) · 1.34 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.6"
services:
nginx:
image: nginx:alpine
container_name: nginx
restart: on-failure
networks:
- net
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
ports:
- 80:80
- 443:443
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot:
image: certbot/certbot
container_name: certbot
restart: on-failure
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
rstudio:
image: rocker/rstudio:4.0.3
container_name: rstudio
restart: on-failure
volumes:
- type: volume
source: rstudio
target: /home/rstudio
volume:
no-copy: true
- type: bind
source: ./projects
target: /home/rstudio/projects
- type: volume
source: r_libs
target: /usr/local/lib/R
volume:
no-copy: true
networks:
- net
environment:
- PASSWORD=rstudio1
expose:
- 8787
networks:
tki-net:
name: net
volumes:
r_libs:
rstudio: