forked from garyritchie/docker-adaptauthoring
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
87 lines (85 loc) · 2.25 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: '3'
volumes:
db:
configdb:
data:
vsftpd_data:
vsftpd_logs:
portainer_data:
certbot_lib:
services:
mongo:
container_name: adapt-db
image: mongo:4.4.29
restart: unless-stopped
volumes:
- db:/data/db
- configdb:/data/configdb
adapt-authoring:
container_name: adapt-authoring
image: rechnerherz/adapt-authoring:0.11.3
restart: unless-stopped
volumes:
- data:/adapt_authoring
environment:
GITHUB_USER: "$GITHUB_USER"
GITHUB_TOKEN: "$GITHUB_TOKEN"
vsftpd:
container_name: vsftpd
image: fauria/vsftpd
restart: unless-stopped
volumes:
- vsftpd_data:/home/vsftpd
- vsftpd_logs:/var/log/vsftpd
ports:
- "20:20"
- "21:21"
- "21100-21109:21100-21109"
environment:
FTP_USER: aatftp
FTP_PASS: "$ADAPT_FTP_PASSWORD"
PASV_ADDRESS: 127.0.0.1
PASV_MIN_PORT: "21100"
PASV_MAX_PORT: "21109"
adminmongo:
container_name: adminmongo
image: mrvautin/adminmongo
restart: unless-stopped
environment:
PASSWORD: "$ADAPT_ADMINMONGO_PASSWORD"
HOST: "0.0.0.0"
PORT: "1234"
CONTEXT: "adminmongo"
command: /bin/sh -c "rm config/app.json; node app.js"
portainer:
container_name: portainer
image: portainer/portainer
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
nginx:
container_name: nginx
image: nginx:1.19.5
restart: unless-stopped
volumes:
- ./etc/nginx/conf.d:/etc/nginx/conf.d
- ../nginx-certbot/data/certbot/conf:/etc/letsencrypt
- ../nginx-certbot/data/certbot/www:/var/www/certbot
depends_on:
- adapt-authoring
- adminmongo
- portainer
ports:
- "80:80"
- "443:443"
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot:
container_name: certbot
image: certbot/certbot
restart: unless-stopped
volumes:
- ../nginx-certbot/data/certbot/conf:/etc/letsencrypt
- ../nginx-certbot/data/certbot/www:/var/www/certbot
- certbot_lib:/var/lib/letsencrypt
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"