mirror of
https://github.com/mykitserver/docker-limesurvey.git
synced 2025-12-06 16:39:11 +01:00
Compare commits
7 Commits
4.4.16+210
...
4.5.2+2104
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74b3f31ee4 | ||
|
|
fc6f655cf7 | ||
|
|
01f6b41082 | ||
|
|
c8d36cf425 | ||
|
|
0f7900e237 | ||
|
|
a782896897 | ||
|
|
ce70ec3000 |
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# force LF in entrypoint.sh
|
||||
entrypoint.sh text eol=lf
|
||||
@@ -1,7 +1,7 @@
|
||||
FROM php:7.4-apache
|
||||
LABEL maintainer="markus@martialblog.de"
|
||||
ARG version='3.25.21+210407'
|
||||
ARG sha256_checksum='82e75fcc1d96fcca37d30d53faab091d496db752b98959e09f0fb39b4c31aa14'
|
||||
ARG version='3.26.1+210427'
|
||||
ARG sha256_checksum='25ed4c956e4b839db05178d7a38f508799a5ea2556b540fec04aeb750817b900'
|
||||
|
||||
# Install OS dependencies
|
||||
RUN set -ex; \
|
||||
|
||||
@@ -23,6 +23,8 @@ URL_FORMAT=${URL_FORMAT:-'path'}
|
||||
DEBUG=${DEBUG:-0}
|
||||
DEBUG_SQL=${DEBUG_SQL:-0}
|
||||
|
||||
LISTEN_PORT=${LISTEN_PORT:-"80"}
|
||||
|
||||
if [ -z "$DB_PASSWORD" ]; then
|
||||
echo >&2 'Error: Missing DB_PASSWORD'
|
||||
exit 1
|
||||
@@ -33,6 +35,11 @@ if [ -z "$ADMIN_PASSWORD" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$LISTEN_PORT" != "80" ]; then
|
||||
echo "Info: Customizing Apache Listen port to $LISTEN_PORT"
|
||||
sed -i "s/80/$LISTEN_PORT/" /etc/apache2/ports.conf /etc/apache2/sites-available/000-default.conf
|
||||
fi
|
||||
|
||||
# Check if database is available
|
||||
if [ -z "$DB_SOCK" ]; then
|
||||
until nc -z -v -w30 $DB_HOST $DB_PORT
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
FROM php:7.4-fpm-alpine
|
||||
LABEL maintainer="markus@martialblog.de"
|
||||
ARG version='3.25.21+210407'
|
||||
ARG sha256_checksum='82e75fcc1d96fcca37d30d53faab091d496db752b98959e09f0fb39b4c31aa14'
|
||||
ARG version='3.26.1+210427'
|
||||
ARG sha256_checksum='25ed4c956e4b839db05178d7a38f508799a5ea2556b540fec04aeb750817b900'
|
||||
|
||||
# Install OS dependencies
|
||||
RUN set -ex; \
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
FROM php:7.4-fpm
|
||||
LABEL maintainer="markus@martialblog.de"
|
||||
ARG version='3.25.21+210407'
|
||||
ARG sha256_checksum='82e75fcc1d96fcca37d30d53faab091d496db752b98959e09f0fb39b4c31aa14'
|
||||
ARG version='3.26.1+210427'
|
||||
ARG sha256_checksum='25ed4c956e4b839db05178d7a38f508799a5ea2556b540fec04aeb750817b900'
|
||||
|
||||
# Install OS dependencies
|
||||
RUN set -ex; \
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
FROM php:7.4-apache
|
||||
LABEL maintainer="markus@martialblog.de"
|
||||
ARG version='4.4.16+210406'
|
||||
ARG sha256_checksum='d499b65f2109c713cd9b992c4066d7bff004ee841557ec99c893c19d2ab80d37'
|
||||
ARG version='4.5.2+210426'
|
||||
ARG sha256_checksum='001c3e416e319d1b64e502620fa2a9a32e69d9b4db2f6376f4a6293b43a063ea'
|
||||
|
||||
# Install OS dependencies
|
||||
RUN set -ex; \
|
||||
|
||||
@@ -27,6 +27,8 @@ URL_FORMAT=${URL_FORMAT:-'path'}
|
||||
DEBUG=${DEBUG:-0}
|
||||
DEBUG_SQL=${DEBUG_SQL:-0}
|
||||
|
||||
LISTEN_PORT=${LISTEN_PORT:-"80"}
|
||||
|
||||
if [ -z "$DB_PASSWORD" ]; then
|
||||
echo >&2 'Error: Missing DB_PASSWORD'
|
||||
exit 1
|
||||
@@ -37,6 +39,11 @@ if [ -z "$ADMIN_PASSWORD" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$LISTEN_PORT" != "80" ]; then
|
||||
echo "Info: Customizing Apache Listen port to $LISTEN_PORT"
|
||||
sed -i "s/80/$LISTEN_PORT/" /etc/apache2/ports.conf /etc/apache2/sites-available/000-default.conf
|
||||
fi
|
||||
|
||||
# Check if database is available
|
||||
if [ -z "$DB_SOCK" ]; then
|
||||
until nc -z -v -w30 $DB_HOST $DB_PORT
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
FROM php:7.4-fpm-alpine
|
||||
LABEL maintainer="markus@martialblog.de"
|
||||
ARG version='4.4.16+210406'
|
||||
ARG sha256_checksum='d499b65f2109c713cd9b992c4066d7bff004ee841557ec99c893c19d2ab80d37'
|
||||
ARG version='4.5.2+210426'
|
||||
ARG sha256_checksum='001c3e416e319d1b64e502620fa2a9a32e69d9b4db2f6376f4a6293b43a063ea'
|
||||
|
||||
# Install OS dependencies
|
||||
RUN set -ex; \
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
FROM php:7.4-fpm
|
||||
LABEL maintainer="markus@martialblog.de"
|
||||
ARG version='4.4.16+210406'
|
||||
ARG sha256_checksum='d499b65f2109c713cd9b992c4066d7bff004ee841557ec99c893c19d2ab80d37'
|
||||
ARG version='4.5.2+210426'
|
||||
ARG sha256_checksum='001c3e416e319d1b64e502620fa2a9a32e69d9b4db2f6376f4a6293b43a063ea'
|
||||
|
||||
# Install OS dependencies
|
||||
RUN set -ex; \
|
||||
|
||||
@@ -31,6 +31,8 @@ To change to Apache Webserver configuration, mount a Volume into the Container a
|
||||
|
||||
See the example configuration provided.
|
||||
|
||||
If you want to run Apache on a non-privileged port inside the container, just specify a environment variable `LISTEN_PORT` (e.g. `LISTEN_PORT=8080`).
|
||||
|
||||
# Using the fpm Image
|
||||
|
||||
To use the fpm image, you need an additional web server that can proxy http-request to the fpm-port of the container. See *docker-compose.fpm.yml* for example.
|
||||
@@ -112,6 +114,7 @@ For further details on the settings see: https://manual.limesurvey.org/Data_encr
|
||||
| ENCRYPT_KEYPAIR | Data encryption keypair |
|
||||
| ENCRYPT_PUBLIC_KEY | Data encryption public key |
|
||||
| ENCRYPT_SECRET_KEY | Data encryption secret key |
|
||||
| LISTEN_PORT | Apache: Listen port. Default: 80 |
|
||||
|
||||
For further details on the settings see: https://manual.limesurvey.org/Optional_settings#Advanced_Path_Settings
|
||||
|
||||
|
||||
Reference in New Issue
Block a user