Compare commits
No commits in common. "0180cf5224c8287975b1a091612887a9ca0256f6" and "f9f3c919d6df45da859ba46d3ba823e543ca636e" have entirely different histories.
0180cf5224
...
f9f3c919d6
|
@ -1 +0,0 @@
|
||||||
.git
|
|
|
@ -4,6 +4,7 @@ WORKDIR /var/www/html/4get
|
||||||
RUN apk update && apk upgrade
|
RUN apk update && apk upgrade
|
||||||
RUN apk add php apache2-ssl php83-fileinfo php83-openssl php83-iconv php83-common php83-dom php83-sodium php83-curl curl php83-pecl-apcu php83-apache2 imagemagick php83-pecl-imagick php-mbstring imagemagick-webp imagemagick-jpeg
|
RUN apk add php apache2-ssl php83-fileinfo php83-openssl php83-iconv php83-common php83-dom php83-sodium php83-curl curl php83-pecl-apcu php83-apache2 imagemagick php83-pecl-imagick php-mbstring imagemagick-webp imagemagick-jpeg
|
||||||
|
|
||||||
|
COPY ./docker/apache/ /etc/apache2/
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN chmod 777 /var/www/html/4get/icons
|
RUN chmod 777 /var/www/html/4get/icons
|
||||||
|
@ -13,5 +14,4 @@ EXPOSE 443
|
||||||
|
|
||||||
ENV FOURGET_PROTO=http
|
ENV FOURGET_PROTO=http
|
||||||
|
|
||||||
ENTRYPOINT ["./docker/docker-entrypoint.sh"]
|
CMD ["./docker/docker-entrypoint.sh"]
|
||||||
CMD ["start"]
|
|
||||||
|
|
|
@ -6,15 +6,14 @@ services:
|
||||||
image: luuul/4get:latest
|
image: luuul/4get:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- FOURGET_PROTO=http
|
|
||||||
- FOURGET_SERVER_NAME=4get.ca
|
- FOURGET_SERVER_NAME=4get.ca
|
||||||
- FOURGET_INSTANCES=https://4get.ca
|
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
|
|
||||||
# volumes:
|
volumes:
|
||||||
# - /etc/letsencrypt/live/domain.tld:/etc/4get/certs # mount ssl
|
- /etc/letsencrypt/live/domain.tld:/etc/4get/certs
|
||||||
# - ./banners:/var/www/html/4get/banner # mount custom banners
|
# mount custom banners and captcha
|
||||||
# - ./captcha:/var/www/html/4get/data/captcha # mount captcha images
|
- ./banners:/var/www/html/4get/banner
|
||||||
|
- ./captcha:/var/www/html/4get/data/captcha
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
# intentionally blank
|
|
|
@ -8,27 +8,18 @@ FOURGET_PROTO="${FOURGET_PROTO#\"}"
|
||||||
# make lowercase
|
# make lowercase
|
||||||
FOURGET_PROTO=`echo $FOURGET_PROTO | awk '{print tolower($0)}'`
|
FOURGET_PROTO=`echo $FOURGET_PROTO | awk '{print tolower($0)}'`
|
||||||
|
|
||||||
FOURGET_SRC='/var/www/html/4get'
|
|
||||||
|
|
||||||
mkdir -p /etc/apache2
|
|
||||||
|
|
||||||
if [ "$FOURGET_PROTO" = "https" ]; then
|
if [ "$FOURGET_PROTO" = "https" ]; then
|
||||||
echo "Using https configuration"
|
echo "Using https configuration"
|
||||||
cp -r ${FOURGET_SRC}/docker/apache/https/httpd.conf /etc/apache2
|
cp /etc/apache2/https.conf /etc/apache2/httpd.conf
|
||||||
cp -r ${FOURGET_SRC}/docker/apache/https/conf.d/* /etc/apache2/conf.d
|
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Using http configuration"
|
echo "Using http configuration"
|
||||||
cp -r ${FOURGET_SRC}/docker/apache/http/httpd.conf /etc/apache2
|
cp /etc/apache2/http.conf /etc/apache2/httpd.conf
|
||||||
cp -r ${FOURGET_SRC}/docker/apache/http/conf.d/* /etc/apache2/conf.d
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
php ./docker/gen_config.php
|
php ./docker/gen_config.php
|
||||||
|
|
||||||
if [ "$@" = "start" ]; then
|
|
||||||
echo "4get is running"
|
echo "4get is running"
|
||||||
exec httpd -DFOREGROUND
|
exec httpd -DFOREGROUND
|
||||||
else
|
|
||||||
exec "$@"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue