mirror of
https://github.com/mykitserver/docker-limesurvey.git
synced 2025-12-06 16:39:11 +01:00
Compare commits
32 Commits
5.1.17-211
...
5.2.9-2201
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99f898aedc | ||
|
|
b3bfb6f2a3 | ||
|
|
f2c65ebc44 | ||
|
|
80a9ca9173 | ||
|
|
cb13a177b6 | ||
|
|
70a86c2301 | ||
|
|
bcd42d3f63 | ||
|
|
0dbe244a9c | ||
|
|
41520cf155 | ||
|
|
4554f13f3d | ||
|
|
edea222851 | ||
|
|
0e35fa6d05 | ||
|
|
0650b759c0 | ||
|
|
7f87925fa7 | ||
|
|
71fade66fe | ||
|
|
1ff7ea366d | ||
|
|
fadbe68076 | ||
|
|
c73949610f | ||
|
|
79aea85bfe | ||
|
|
453cb4b1eb | ||
|
|
58ad34b0bd | ||
|
|
8f1b452789 | ||
|
|
19a387488a | ||
|
|
19a1a0d044 | ||
|
|
624a17b9fc | ||
|
|
21bc2e44a5 | ||
|
|
644d144f08 | ||
|
|
21d3ffceff | ||
|
|
18f6a97ed3 | ||
|
|
5d9c116b64 | ||
|
|
4b02c3c26d | ||
|
|
1676677dfc |
@@ -49,10 +49,11 @@ jobs:
|
|||||||
images: |
|
images: |
|
||||||
docker.io/martialblog/limesurvey
|
docker.io/martialblog/limesurvey
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{raw}},suffix=-apache
|
type=match,pattern=(.+),group=1
|
||||||
type=semver,pattern={{major}},suffix=-apache
|
type=match,pattern=^(\d+),group=1
|
||||||
flavor: |
|
flavor: |
|
||||||
latest=false
|
latest=true
|
||||||
|
suffix=-apache
|
||||||
- name: 'Build and push latest Apache container images'
|
- name: 'Build and push latest Apache container images'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
@@ -68,8 +69,11 @@ jobs:
|
|||||||
images: |
|
images: |
|
||||||
docker.io/martialblog/limesurvey
|
docker.io/martialblog/limesurvey
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}},suffix=-fpm
|
type=match,pattern=(.+),group=1
|
||||||
type=semver,pattern={{major}},suffix=-fpm
|
type=match,pattern=^(\d+),group=1
|
||||||
|
flavor: |
|
||||||
|
latest=false
|
||||||
|
suffix=-fpm
|
||||||
- name: 'Build and push latest fpm container images'
|
- name: 'Build and push latest fpm container images'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
@@ -85,8 +89,11 @@ jobs:
|
|||||||
images: |
|
images: |
|
||||||
docker.io/martialblog/limesurvey
|
docker.io/martialblog/limesurvey
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}},suffix=-fpm-alpine
|
type=match,pattern=(.+),group=1
|
||||||
type=semver,pattern={{major}},suffix=-fpm-alpine
|
type=match,pattern=^(\d+),group=1
|
||||||
|
flavor: |
|
||||||
|
latest=false
|
||||||
|
suffix=-fpm-alpine
|
||||||
- name: 'Build and push latest fpm-alpine container images'
|
- name: 'Build and push latest fpm-alpine container images'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -49,10 +49,11 @@ jobs:
|
|||||||
images: |
|
images: |
|
||||||
docker.io/martialblog/limesurvey
|
docker.io/martialblog/limesurvey
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{raw}},suffix=-apache
|
type=match,pattern=(.+),group=1
|
||||||
type=semver,pattern={{major}},suffix=-apache
|
type=match,pattern=^(\d+),group=1
|
||||||
flavor: |
|
flavor: |
|
||||||
latest=false
|
latest=false
|
||||||
|
suffix=-apache
|
||||||
- name: 'Build and push LTS apache container images'
|
- name: 'Build and push LTS apache container images'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
@@ -68,8 +69,11 @@ jobs:
|
|||||||
images: |
|
images: |
|
||||||
docker.io/martialblog/limesurvey
|
docker.io/martialblog/limesurvey
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}},suffix=-fpm
|
type=match,pattern=(.+),group=1
|
||||||
type=semver,pattern={{major}},suffix=-fpm
|
type=match,pattern=^(\d+),group=1
|
||||||
|
flavor: |
|
||||||
|
latest=false
|
||||||
|
suffix=-fpm
|
||||||
- name: 'Build and push LTS fpm container images'
|
- name: 'Build and push LTS fpm container images'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
@@ -85,8 +89,11 @@ jobs:
|
|||||||
images: |
|
images: |
|
||||||
docker.io/martialblog/limesurvey
|
docker.io/martialblog/limesurvey
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}},suffix=-fpm-alpine
|
type=match,pattern=(.+),group=1
|
||||||
type=semver,pattern={{major}},suffix=-fpm-alpine
|
type=match,pattern=^(\d+),group=1
|
||||||
|
flavor: |
|
||||||
|
latest=false
|
||||||
|
suffix=-fpm-alpine
|
||||||
- name: 'Build and push LTS fpm-alpine container images'
|
- name: 'Build and push LTS fpm-alpine container images'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM php:7.4-apache
|
FROM php:8.0-apache
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='3.27.22+211026'
|
ARG version='3.27.31+220104'
|
||||||
ARG sha256_checksum='9fd31e38cf692370257b21821f791f0568f6f93bbff68995467fbcec0370ff34'
|
ARG sha256_checksum='f55cd1db1323c4bdcea9008f0025b0a5e2092942f329cf60db2f6cb387202a7f'
|
||||||
ARG USER=root
|
ARG USER=root
|
||||||
ARG LISTEN_PORT=80
|
ARG LISTEN_PORT=80
|
||||||
|
|
||||||
@@ -75,8 +75,8 @@ RUN set -ex; \
|
|||||||
chown -R www-data:www-data /var/www/html /etc/apache2
|
chown -R www-data:www-data /var/www/html /etc/apache2
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
COPY entrypoint.sh entrypoint.sh
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
COPY vhosts-access-log.conf /etc/apache2/conf-enabled/other-vhosts-access-log.conf
|
COPY vhosts-access-log.conf /etc/apache2/conf-enabled/other-vhosts-access-log.conf
|
||||||
USER $USER
|
USER $USER
|
||||||
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
CMD ["apache2-foreground"]
|
CMD ["apache2-foreground"]
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ return array(
|
|||||||
'username' => '$DB_USERNAME',
|
'username' => '$DB_USERNAME',
|
||||||
'password' => '$DB_PASSWORD',
|
'password' => '$DB_PASSWORD',
|
||||||
'charset' => '$DB_CHARSET',
|
'charset' => '$DB_CHARSET',
|
||||||
'tablePrefix' => '$DB_TABLE_PREFIX',
|
'tablePrefix' => '${DB_TABLE_PREFIX//[[:space:]]/}',
|
||||||
),
|
),
|
||||||
//'session' => array (
|
//'session' => array (
|
||||||
// 'class' => 'application.core.web.DbHttpSession',
|
// 'class' => 'application.core.web.DbHttpSession',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM php:7.4-fpm-alpine
|
FROM php:8.0-fpm-alpine
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='3.27.22+211026'
|
ARG version='3.27.31+220104'
|
||||||
ARG sha256_checksum='9fd31e38cf692370257b21821f791f0568f6f93bbff68995467fbcec0370ff34'
|
ARG sha256_checksum='f55cd1db1323c4bdcea9008f0025b0a5e2092942f329cf60db2f6cb387202a7f'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
@@ -52,6 +52,6 @@ RUN set -ex; \
|
|||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
COPY entrypoint.sh entrypoint.sh
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ return array(
|
|||||||
'username' => '$DB_USERNAME',
|
'username' => '$DB_USERNAME',
|
||||||
'password' => '$DB_PASSWORD',
|
'password' => '$DB_PASSWORD',
|
||||||
'charset' => '$DB_CHARSET',
|
'charset' => '$DB_CHARSET',
|
||||||
'tablePrefix' => '$DB_TABLE_PREFIX',
|
'tablePrefix' => '${DB_TABLE_PREFIX//[[:space:]]/}',
|
||||||
),
|
),
|
||||||
//'session' => array (
|
//'session' => array (
|
||||||
// 'class' => 'application.core.web.DbHttpSession',
|
// 'class' => 'application.core.web.DbHttpSession',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM php:7.4-fpm
|
FROM php:8.0-fpm
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='3.27.22+211026'
|
ARG version='3.27.31+220104'
|
||||||
ARG sha256_checksum='9fd31e38cf692370257b21821f791f0568f6f93bbff68995467fbcec0370ff34'
|
ARG sha256_checksum='f55cd1db1323c4bdcea9008f0025b0a5e2092942f329cf60db2f6cb387202a7f'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
@@ -62,6 +62,6 @@ RUN set -ex; \
|
|||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
COPY entrypoint.sh entrypoint.sh
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ return array(
|
|||||||
'username' => '$DB_USERNAME',
|
'username' => '$DB_USERNAME',
|
||||||
'password' => '$DB_PASSWORD',
|
'password' => '$DB_PASSWORD',
|
||||||
'charset' => '$DB_CHARSET',
|
'charset' => '$DB_CHARSET',
|
||||||
'tablePrefix' => '$DB_TABLE_PREFIX',
|
'tablePrefix' => '${DB_TABLE_PREFIX//[[:space:]]/}',
|
||||||
),
|
),
|
||||||
//'session' => array (
|
//'session' => array (
|
||||||
// 'class' => 'application.core.web.DbHttpSession',
|
// 'class' => 'application.core.web.DbHttpSession',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM php:7.4-apache
|
FROM php:8.0-apache
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='4.6.3+210518'
|
ARG version='4.6.3+210518'
|
||||||
ARG sha256_checksum='3c59afc13d0cf974c465c5f851cb8837117518e94031f5e3a28ba468ad734ce2'
|
ARG sha256_checksum='3c59afc13d0cf974c465c5f851cb8837117518e94031f5e3a28ba468ad734ce2'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM php:7.4-fpm-alpine
|
FROM php:8.0-fpm-alpine
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='4.6.3+210518'
|
ARG version='4.6.3+210518'
|
||||||
ARG sha256_checksum='3c59afc13d0cf974c465c5f851cb8837117518e94031f5e3a28ba468ad734ce2'
|
ARG sha256_checksum='3c59afc13d0cf974c465c5f851cb8837117518e94031f5e3a28ba468ad734ce2'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM php:7.4-fpm
|
FROM php:8.0-fpm
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='4.6.3+210518'
|
ARG version='4.6.3+210518'
|
||||||
ARG sha256_checksum='3c59afc13d0cf974c465c5f851cb8837117518e94031f5e3a28ba468ad734ce2'
|
ARG sha256_checksum='3c59afc13d0cf974c465c5f851cb8837117518e94031f5e3a28ba468ad734ce2'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM php:8-apache
|
FROM php:8.0-apache
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='5.1.17+211025'
|
ARG version='5.2.9+220110'
|
||||||
ARG sha256_checksum='b0d3e49af9d4149e136531c5209cdeede88361d78377c1509413e4264e23e594'
|
ARG sha256_checksum='362c99a26cd787e03b470b46270ed610f4497a820b21879d1a615ab901d9dced'
|
||||||
ARG USER=www-data
|
ARG USER=www-data
|
||||||
ARG LISTEN_PORT=8080
|
ARG LISTEN_PORT=8080
|
||||||
|
|
||||||
@@ -78,8 +78,8 @@ RUN set -ex; \
|
|||||||
EXPOSE $LISTEN_PORT
|
EXPOSE $LISTEN_PORT
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
COPY entrypoint.sh entrypoint.sh
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
COPY vhosts-access-log.conf /etc/apache2/conf-enabled/other-vhosts-access-log.conf
|
COPY vhosts-access-log.conf /etc/apache2/conf-enabled/other-vhosts-access-log.conf
|
||||||
USER $USER
|
USER $USER
|
||||||
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
CMD ["apache2-foreground"]
|
CMD ["apache2-foreground"]
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ return array(
|
|||||||
'username' => '$DB_USERNAME',
|
'username' => '$DB_USERNAME',
|
||||||
'password' => '$DB_PASSWORD',
|
'password' => '$DB_PASSWORD',
|
||||||
'charset' => '$DB_CHARSET',
|
'charset' => '$DB_CHARSET',
|
||||||
'tablePrefix' => '$DB_TABLE_PREFIX',
|
'tablePrefix' => '${DB_TABLE_PREFIX//[[:space:]]/}',
|
||||||
),
|
),
|
||||||
//'session' => array (
|
//'session' => array (
|
||||||
// 'class' => 'application.core.web.DbHttpSession',
|
// 'class' => 'application.core.web.DbHttpSession',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM php:8-fpm-alpine
|
FROM php:8.0-fpm-alpine
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='5.1.17+211025'
|
ARG version='5.2.9+220110'
|
||||||
ARG sha256_checksum='b0d3e49af9d4149e136531c5209cdeede88361d78377c1509413e4264e23e594'
|
ARG sha256_checksum='362c99a26cd787e03b470b46270ed610f4497a820b21879d1a615ab901d9dced'
|
||||||
ARG USER=www-data
|
ARG USER=www-data
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
@@ -54,7 +54,7 @@ RUN set -ex; \
|
|||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
COPY entrypoint.sh entrypoint.sh
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
USER $USER
|
USER $USER
|
||||||
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ return array(
|
|||||||
'username' => '$DB_USERNAME',
|
'username' => '$DB_USERNAME',
|
||||||
'password' => '$DB_PASSWORD',
|
'password' => '$DB_PASSWORD',
|
||||||
'charset' => '$DB_CHARSET',
|
'charset' => '$DB_CHARSET',
|
||||||
'tablePrefix' => '$DB_TABLE_PREFIX',
|
'tablePrefix' => '${DB_TABLE_PREFIX//[[:space:]]/}',
|
||||||
),
|
),
|
||||||
//'session' => array (
|
//'session' => array (
|
||||||
// 'class' => 'application.core.web.DbHttpSession',
|
// 'class' => 'application.core.web.DbHttpSession',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM php:8-fpm
|
FROM php:8.0-fpm
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='5.1.17+211025'
|
ARG version='5.2.9+220110'
|
||||||
ARG sha256_checksum='b0d3e49af9d4149e136531c5209cdeede88361d78377c1509413e4264e23e594'
|
ARG sha256_checksum='362c99a26cd787e03b470b46270ed610f4497a820b21879d1a615ab901d9dced'
|
||||||
ARG USER=www-data
|
ARG USER=www-data
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
@@ -63,7 +63,7 @@ RUN set -ex; \
|
|||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
COPY entrypoint.sh entrypoint.sh
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
USER $USER
|
USER $USER
|
||||||
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ return array(
|
|||||||
'username' => '$DB_USERNAME',
|
'username' => '$DB_USERNAME',
|
||||||
'password' => '$DB_PASSWORD',
|
'password' => '$DB_PASSWORD',
|
||||||
'charset' => '$DB_CHARSET',
|
'charset' => '$DB_CHARSET',
|
||||||
'tablePrefix' => '$DB_TABLE_PREFIX',
|
'tablePrefix' => '${DB_TABLE_PREFIX//[[:space:]]/}',
|
||||||
),
|
),
|
||||||
//'session' => array (
|
//'session' => array (
|
||||||
// 'class' => 'application.core.web.DbHttpSession',
|
// 'class' => 'application.core.web.DbHttpSession',
|
||||||
@@ -159,7 +159,7 @@ if [ $PHP_UPDATEDB_EXIT_CODE -eq 0 ]; then
|
|||||||
else
|
else
|
||||||
echo ''
|
echo ''
|
||||||
echo 'Running console.php install'
|
echo 'Running console.php install'
|
||||||
php application/commands/console.php install "$ADMIN_USER" "$ADMIN_PASSWORD" "$ADMIN_NAME $ADMIN_EMAIL"
|
php application/commands/console.php install "$ADMIN_USER" "$ADMIN_PASSWORD" "$ADMIN_NAME" "$ADMIN_EMAIL"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|||||||
@@ -87,6 +87,8 @@ For further details on the settings see: https://manual.limesurvey.org/Data_encr
|
|||||||
|
|
||||||
## Traefik example
|
## Traefik example
|
||||||
|
|
||||||
|
**Hint**: if you want to deploy LimeSurvey on a sub-path (e.g. https://example.com/limesurvey) you have to set the BASE_URL and adjust the Containers Webservers. See the docker-compose Traefik example in the repository.
|
||||||
|
|
||||||
```
|
```
|
||||||
# BASE_URL = /limesurvey
|
# BASE_URL = /limesurvey
|
||||||
"traefik.http.routers.limesurvey.rule=PathPrefix(`/limesurvey`)",
|
"traefik.http.routers.limesurvey.rule=PathPrefix(`/limesurvey`)",
|
||||||
@@ -103,7 +105,7 @@ For further details on the settings see: https://manual.limesurvey.org/Data_encr
|
|||||||
| DB_PORT | Database server port |
|
| DB_PORT | Database server port |
|
||||||
| DB_SOCK | Database unix socket instead of host/port |
|
| DB_SOCK | Database unix socket instead of host/port |
|
||||||
| DB_NAME | Database name |
|
| DB_NAME | Database name |
|
||||||
| DB_TABLE_PREFIX | Database table prefix |
|
| DB_TABLE_PREFIX | Database table prefix; set this to a single whitespace if you don't want a table prefix. |
|
||||||
| DB_MYSQL_ENGINE | MySQL engine used for survey tables (values: MyISAM, InnoDB, default: MyISAM) |
|
| DB_MYSQL_ENGINE | MySQL engine used for survey tables (values: MyISAM, InnoDB, default: MyISAM) |
|
||||||
| DB_USERNAME | Database user |
|
| DB_USERNAME | Database user |
|
||||||
| DB_PASSWORD | Database user's password |
|
| DB_PASSWORD | Database user's password |
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ services:
|
|||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
links:
|
links:
|
||||||
- limesurvey
|
- limesurvey
|
||||||
|
depends_on:
|
||||||
|
- limesurvey
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ services:
|
|||||||
lime-db:
|
lime-db:
|
||||||
image: postgres:10
|
image: postgres:10
|
||||||
volumes:
|
volumes:
|
||||||
- db-data:/var/lib/postgresql
|
- db-data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
- "POSTGRES_USER=limesurvey"
|
- "POSTGRES_USER=limesurvey"
|
||||||
- "POSTGRES_DB=limesurvey"
|
- "POSTGRES_DB=limesurvey"
|
||||||
|
|||||||
46
docker-compose.traefik.yml
Normal file
46
docker-compose.traefik.yml
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
version: "3.0"
|
||||||
|
services:
|
||||||
|
limesurvey:
|
||||||
|
build:
|
||||||
|
context: 5.0/apache/
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
labels:
|
||||||
|
traefik.enable: 'true'
|
||||||
|
traefik.http.routers.limesurvey-http-router.entrypoints: "http"
|
||||||
|
traefik.http.routers.limesurvey-http-router.rule: "PathPrefix(`/limesurvey`)"
|
||||||
|
traefik.http.services.limesurvey-service.loadbalancer.server.port: "8080"
|
||||||
|
links:
|
||||||
|
- lime-db
|
||||||
|
depends_on:
|
||||||
|
- lime-db
|
||||||
|
volumes:
|
||||||
|
# Unfortunately the StripPrefix Function in Traefik won't work;
|
||||||
|
# Meaning, we will have to set 'Alias /limesurvey "/var/www/html"' in the Apache Config
|
||||||
|
- "./examples/apache-example.conf:/etc/apache2/sites-available/000-default.conf:ro"
|
||||||
|
environment:
|
||||||
|
- "DB_HOST=lime-db"
|
||||||
|
- "DB_PASSWORD=secret"
|
||||||
|
- "ADMIN_PASSWORD=foobar"
|
||||||
|
- "PUBLIC_URL=http://localhost:8888/limesurvey"
|
||||||
|
- "BASE_URL=http://localhost:8888/limesurvey"
|
||||||
|
traefik:
|
||||||
|
image: "traefik:v2.5"
|
||||||
|
container_name: "traefik"
|
||||||
|
command:
|
||||||
|
- "--api.insecure=true"
|
||||||
|
- "--providers.docker=true"
|
||||||
|
- "--providers.docker.exposedbydefault=false"
|
||||||
|
- "--entrypoints.http.address=:8888"
|
||||||
|
ports:
|
||||||
|
- "8888:8888"
|
||||||
|
- "8080:8080"
|
||||||
|
volumes:
|
||||||
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
|
lime-db:
|
||||||
|
image: mysql:5.7
|
||||||
|
environment:
|
||||||
|
- "MYSQL_USER=limesurvey"
|
||||||
|
- "MYSQL_DATABASE=limesurvey"
|
||||||
|
- "MYSQL_PASSWORD=secret"
|
||||||
|
- "MYSQL_ROOT_PASSWORD=secret"
|
||||||
|
|
||||||
@@ -17,6 +17,8 @@ services:
|
|||||||
- "DB_HOST=lime-db"
|
- "DB_HOST=lime-db"
|
||||||
- "DB_PASSWORD=secret"
|
- "DB_PASSWORD=secret"
|
||||||
- "ADMIN_PASSWORD=foobar"
|
- "ADMIN_PASSWORD=foobar"
|
||||||
|
# If you require an empty table prefix, use a space as the DB_TABLE_PREFIX
|
||||||
|
# - "DB_TABLE_PREFIX= "
|
||||||
lime-db:
|
lime-db:
|
||||||
image: mysql:5.7
|
image: mysql:5.7
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<VirtualHost *:8080>
|
<VirtualHost *:8080>
|
||||||
ServerAdmin foo@bar.com
|
ServerAdmin foo@bar.com
|
||||||
DocumentRoot /var/www/html
|
DocumentRoot /var/www/html
|
||||||
Alias /lime "/var/www/html"
|
Alias /limesurvey "/var/www/html"
|
||||||
|
|
||||||
<Directory />
|
<Directory />
|
||||||
Options FollowSymLinks
|
Options FollowSymLinks
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ http {
|
|||||||
location / {
|
location / {
|
||||||
try_files $uri /index.php?$args;
|
try_files $uri /index.php?$args;
|
||||||
}
|
}
|
||||||
location ~ ^/(protected|framework|themes/\w+/views) {
|
location ~ ^/(protected|application|framework|themes/\w+/views) {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
|
location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ fileContentTests:
|
|||||||
path: '/var/www/html/admin/index.php'
|
path: '/var/www/html/admin/index.php'
|
||||||
expectedContents: ['LimeSurvey']
|
expectedContents: ['LimeSurvey']
|
||||||
- name: 'Entrypoint file content'
|
- name: 'Entrypoint file content'
|
||||||
path: '/var/www/html/entrypoint.sh'
|
path: '/usr/local/bin/entrypoint.sh'
|
||||||
expectedContents: ['console.php', 'ADMIN_USER']
|
expectedContents: ['console.php', 'ADMIN_USER']
|
||||||
|
|
||||||
fileExistenceTests:
|
fileExistenceTests:
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ fileContentTests:
|
|||||||
path: '/var/www/html/admin/index.php'
|
path: '/var/www/html/admin/index.php'
|
||||||
expectedContents: ['LimeSurvey']
|
expectedContents: ['LimeSurvey']
|
||||||
- name: 'Entrypoint file content'
|
- name: 'Entrypoint file content'
|
||||||
path: '/var/www/html/entrypoint.sh'
|
path: '/usr/local/bin/entrypoint.sh'
|
||||||
expectedContents: ['console.php', 'ADMIN_USER']
|
expectedContents: ['console.php', 'ADMIN_USER']
|
||||||
|
|
||||||
fileExistenceTests:
|
fileExistenceTests:
|
||||||
|
|||||||
Reference in New Issue
Block a user