diff --git a/public/svgs/limesurvey.svg b/public/svgs/limesurvey.svg new file mode 100644 index 000000000..7f84f0f9d --- /dev/null +++ b/public/svgs/limesurvey.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/compose/limesurvey.yaml b/templates/compose/limesurvey.yaml new file mode 100644 index 000000000..ba9f7d7a0 --- /dev/null +++ b/templates/compose/limesurvey.yaml @@ -0,0 +1,74 @@ +# documentation: https://www.limesurvey.org/manual/ +# slogan: Simple, quick and anonymous online survey tool that's bursting with juicy insights. +# tags: online survey, forms, no code, open source +# logo: svgs/limesurvey.svg +# port: 80 + +services: + limesurvey: + image: adamzammit/limesurvey:latest + environment: + - SERVICE_FQDN_LIMESURVEY_80 + - LIMESURVEY_DB_HOST=mariadb + - LIMESURVEY_DB_PASSWORD=$SERVICE_PASSWORD_MYSQL + - LIMESURVEY_DB_USER=$SERVICE_USER_MYSQL + - LIMESURVEY_DB_NAME=${MYSQL_DATABASE:-limesurvey} + - LIMESURVEY_ADMIN_USER=${LIMESURVEY_ADMIN_USER:-admin} + - LIMESURVEY_ADMIN_PASSWORD=${SERVICE_PASSWORD_ADMIN} + - LIMESURVEY_ADMIN_NAME=${LIMESURVEY_ADMIN_NAME:-Lime Administrator} + - LIMESURVEY_ADMIN_EMAIL=${LIMESURVEY_ADMIN_EMAIL:-lime@lime.lime} + - LIMESURVEY_FROM_EMAIL= + - LIMESURVEY_SMTP_HOST= + - LIMESURVEY_SMTP_USER= + - LIMESURVEY_SMTP_PASSWORD= + - LIMESURVEY_SMTP_SSL= + - LIMESURVEY_PHP_SESSION_SAVE_HANDLER=redis + - LIMESURVEY_PHP_SESSION_SAVE_PATH=tcp://redis:6379 + - TZ=America/Jamaica + volumes: + - limesurvey-plugins-data:/var/www/html/plugins + - limesurvey-upload-data:/var/www/html/upload + - limesurvey-config-data:/var/www/html/application/config + - limesurvey-sessions-data:/var/lime/sessions + depends_on: + mariadb: + condition: service_healthy + healthcheck: + test: + - CMD + - curl + - '-f' + - 'http://127.0.0.1' + interval: 2s + timeout: 10s + retries: 10 + + mariadb: + image: mariadb:11 + environment: + - MYSQL_USER=${SERVICE_USER_MYSQL:-limesurvey} + - MYSQL_PASSWORD=${SERVICE_PASSWORD_MYSQL} + - MYSQL_DATABASE=${MYSQL_DATABASE:-limesurvey} + - MYSQL_ROOT_PASSWORD=${SERVICE_PASSWORD_MYSQLROOT} + volumes: + - limesurvey-mariadb-data:/var/lib/mysql + healthcheck: + test: + - CMD + - healthcheck.sh + - '--connect' + - '--innodb_initialized' + interval: 5s + timeout: 20s + retries: 10 + + redis: + image: redis:7 + healthcheck: + test: + - CMD + - redis-cli + - ping + interval: 5s + timeout: 3s + retries: 3