mirror of
https://github.com/mykitserver/docker-limesurvey.git
synced 2025-12-06 16:39:11 +01:00
Compare commits
55 Commits
5.2.3-2111
...
5.3.16-220
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce31f52f54 | ||
|
|
4d22afc2f3 | ||
|
|
2dff0b1c02 | ||
|
|
d817d2c56d | ||
|
|
26291e176b | ||
|
|
b00c7b146a | ||
|
|
a45bcd926d | ||
|
|
c1c16c5395 | ||
|
|
afbe9787e0 | ||
|
|
9af1d036cc | ||
|
|
be5896458a | ||
|
|
c30fa9344c | ||
|
|
7f69fae06e | ||
|
|
7d7f373632 | ||
|
|
148231aab6 | ||
|
|
a201933bf2 | ||
|
|
350b07dbe9 | ||
|
|
f9f651b2be | ||
|
|
8c14595423 | ||
|
|
9014e7ac6f | ||
|
|
ce253c48b8 | ||
|
|
392e28405a | ||
|
|
a6c71d5d10 | ||
|
|
d6093e43d2 | ||
|
|
2aa9153abc | ||
|
|
027a8a4589 | ||
|
|
6dd4088f7d | ||
|
|
2c2106522b | ||
|
|
b6ad489977 | ||
|
|
cb2286e6be | ||
|
|
241f855f0e | ||
|
|
7ba3ad6618 | ||
|
|
e486bf1ec6 | ||
|
|
dfb5b39211 | ||
|
|
16175a30ac | ||
|
|
69178ec686 | ||
|
|
822a936b36 | ||
|
|
99f898aedc | ||
|
|
b3bfb6f2a3 | ||
|
|
f2c65ebc44 | ||
|
|
80a9ca9173 | ||
|
|
cb13a177b6 | ||
|
|
70a86c2301 | ||
|
|
bcd42d3f63 | ||
|
|
0dbe244a9c | ||
|
|
41520cf155 | ||
|
|
4554f13f3d | ||
|
|
edea222851 | ||
|
|
0e35fa6d05 | ||
|
|
0650b759c0 | ||
|
|
7f87925fa7 | ||
|
|
71fade66fe | ||
|
|
1ff7ea366d | ||
|
|
fadbe68076 | ||
|
|
c73949610f |
@@ -52,7 +52,7 @@ jobs:
|
|||||||
type=match,pattern=(.+),group=1
|
type=match,pattern=(.+),group=1
|
||||||
type=match,pattern=^(\d+),group=1
|
type=match,pattern=^(\d+),group=1
|
||||||
flavor: |
|
flavor: |
|
||||||
latest=false
|
latest=true
|
||||||
suffix=-apache
|
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
|
||||||
|
|||||||
@@ -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.26+211123'
|
ARG version='3.28.11+220517'
|
||||||
ARG sha256_checksum='fc1176d71efc7fa4c10415ebfff5d0c78c73b1458bc30822443c4c17928a97d1'
|
ARG sha256_checksum='8a36643b4341dd5095ee484da677a94a4bff25ee2ed6567136062bd0c7af4226'
|
||||||
ARG USER=root
|
ARG USER=root
|
||||||
ARG LISTEN_PORT=80
|
ARG LISTEN_PORT=80
|
||||||
|
|
||||||
|
|||||||
@@ -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.26+211123'
|
ARG version='3.28.11+220517'
|
||||||
ARG sha256_checksum='fc1176d71efc7fa4c10415ebfff5d0c78c73b1458bc30822443c4c17928a97d1'
|
ARG sha256_checksum='8a36643b4341dd5095ee484da677a94a4bff25ee2ed6567136062bd0c7af4226'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
|||||||
@@ -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.26+211123'
|
ARG version='3.28.11+220517'
|
||||||
ARG sha256_checksum='fc1176d71efc7fa4c10415ebfff5d0c78c73b1458bc30822443c4c17928a97d1'
|
ARG sha256_checksum='8a36643b4341dd5095ee484da677a94a4bff25ee2ed6567136062bd0c7af4226'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
|||||||
@@ -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.2.3+211122'
|
ARG version='5.3.16+220523'
|
||||||
ARG sha256_checksum='5a5bf3bbc1cc3ddff943e377dfdcb5469a5e5f4532fdc6b43261e7494d82f406'
|
ARG sha256_checksum='146447308ff09a6f4ed9c3fff65422d2f03d38ce1aba8c314eaf6d79366ef2d7'
|
||||||
ARG USER=www-data
|
ARG USER=www-data
|
||||||
ARG LISTEN_PORT=8080
|
ARG LISTEN_PORT=8080
|
||||||
|
|
||||||
|
|||||||
@@ -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.2.3+211122'
|
ARG version='5.3.16+220523'
|
||||||
ARG sha256_checksum='5a5bf3bbc1cc3ddff943e377dfdcb5469a5e5f4532fdc6b43261e7494d82f406'
|
ARG sha256_checksum='146447308ff09a6f4ed9c3fff65422d2f03d38ce1aba8c314eaf6d79366ef2d7'
|
||||||
ARG USER=www-data
|
ARG USER=www-data
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
|
|||||||
@@ -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.2.3+211122'
|
ARG version='5.3.16+220523'
|
||||||
ARG sha256_checksum='5a5bf3bbc1cc3ddff943e377dfdcb5469a5e5f4532fdc6b43261e7494d82f406'
|
ARG sha256_checksum='146447308ff09a6f4ed9c3fff65422d2f03d38ce1aba8c314eaf6d79366ef2d7'
|
||||||
ARG USER=www-data
|
ARG USER=www-data
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
|
|||||||
@@ -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`)",
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user