-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
57 lines (50 loc) · 1.94 KB
/
Dockerfile
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
FROM node:lts
ENV HABIDAT_DOMAIN example.com
ENV HABIDAT_TITLE habi*DAT
ENV HABIDAT_ADMIN_EMAIL admin@example.com
ENV HABIDAT_USER_SUBDOMAIN user
ENV HABIDAT_USER_SMTP_EMAILFROM noreply@example.com
ENV HABIDAT_USER_SMTP_HOST mail.example.com
ENV HABIDAT_USER_SMTP_PORT 25
ENV HABIDAT_USER_SMTP_USER none
ENV HABIDAT_USER_SMTP_PASSWORD none
ENV HABIDAT_USER_SMTP_TLS false
ENV HABIDAT_USER_SMTP_AUTHMETHOD PLAIN
ENV HABIDAT_USER_LDAP_HOST ldap.example.com
ENV HABIDAT_USER_LDAP_PORT 389
ENV HABIDAT_USER_LDAP_BINDDN cn=admin,dc=example,dc=com
ENV HABIDAT_USER_LDAP_BASE dc=example,dc=com
ENV HABIDAT_USER_LDAP_PASSWORD passme
ENV HABIDAT_DISCOURSE_API_URL discourse.example.com
ENV HABIDAT_DISCOURSE_API_KEY iamasecretkey
ENV HABIDAT_DISCOURSE_API_USERNAME admin
ENV HABIDAT_DISCOURSE_SSO_SECRET secret
ENV HABIDAT_USER_NEXTCLOUD_DB_HOST db.example.com
ENV HABIDAT_USER_NEXTCLOUD_DB_PORT 3306
ENV HABIDAT_USER_NEXTCLOUD_DB_DATABASE nextcloud
ENV HABIDAT_USER_NEXTCLOUD_DB_USER nextcloud
ENV HABIDAT_USER_NEXTCLOUD_DB_PASSWORD passme
ENV HABIDAT_USER_NEXTCLOUD_API_URL https://user:secret@cloud.example.org/ocs/v1.php
ENV HABIDAT_USER_NEXTCLOUD_DEFAULTQUOTA "1 GB"
ENV HABIDAT_USER_SAML true
ENV HABIDAT_SSO_CERTIFICATE cert
ENV HABIDAT_USER_NEXTCLOUD_SUBDOMAIN cloud
ENV HABIDAT_USER_DISCOURSE_SUBDOMAIN discourse
ENV HABIDAT_USER_DOKUWIKI_SUBDOMAIN dokuwiki
ENV HABIDAT_USER_MEDIAWIKI_SUBDOMAIN mediawiki
ENV HABIDAT_USER_DIREKTKREDIT_SUBDOMAIN direktkredit
ENV HABIDAT_USER_MAILTRAIN_SUBDOMAIN news
ENV HABIDAT_USER_INSTALLED_MODULES nextcloud,discourse,
ADD . /habidat-user
WORKDIR /habidat-user
RUN npm install && npm install pm2 -g
RUN \
apt-get update \
&& apt-get -y install gettext-base \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]
CMD pm2-docker start app.js