-
Notifications
You must be signed in to change notification settings - Fork 23
/
Dockerfile
64 lines (50 loc) · 1.54 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
58
59
60
61
62
63
64
# syntax=docker/dockerfile:1
FROM tomcat:9-jdk11-temurin-jammy
RUN apt-get update \
&& apt-get upgrade -y
RUN apt-get install -y \
aapt \
wget \
sed \
postgresql-client \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /usr/local/tomcat/conf/Catalina/localhost
RUN mkdir -p /usr/local/tomcat/ssl
# Set to 1 to force updating the config files
# If not set, they will be created only if there's no files
#ENV FORCE_RECONFIGURE=true
ENV FORCE_RECONFIGURE=
# Available values: en, ru (en by default)
ENV INSTALL_LANGUAGE=en
#ENV ADMIN_EMAIL=
# Different for open source and premium versions!
ENV SHARED_SECRET=changeme-C3z9vi54
ENV HMDM_VARIANT=os
ENV DOWNLOAD_CREDENTIALS=
ENV HMDM_URL=https://h-mdm.com/files/hmdm-5.27.1-$HMDM_VARIANT.war
ENV CLIENT_VERSION=5.27
ENV SQL_HOST=localhost
ENV SQL_PORT=5432
ENV SQL_BASE=hmdm
ENV SQL_USER=hmdm
ENV SQL_PASS=Ch@nGeMe
ENV PROTOCOL=https
#ENV BASE_DOMAIN=your-domain.com
# Set this parameter to your local IP address
# if your server is behind the NAT
#ENV LOCAL_IP=172.31.91.82
# Comment it to use custom certificates
ENV HTTPS_LETSENCRYPT=true
# Mount the custom certificate path if custom certificates must be used
# ENV_HTTPS_CERT_PATH is the path to certificates and keys inside the container
#ENV HTTPS_CERT_PATH=/cert
ENV HTTPS_CERT=cert.pem
ENV HTTPS_FULLCHAIN=fullchain.pem
ENV HTTPS_PRIVKEY=privkey.pem
EXPOSE 8080
EXPOSE 8443
EXPOSE 31000
COPY docker-entrypoint.sh /
COPY tomcat_conf/server.xml /usr/local/tomcat/conf/server.xml
ADD templates /opt/hmdm/templates/
ENTRYPOINT ["/docker-entrypoint.sh"]