Skip to content
Snippets Groups Projects
Select Git revision
  • da5614256dcdeb8e072c00c36f52587c3f2dea5a
  • master default protected
  • Legacy_Php7
3 results

init.sh.cfg

Blame
  • user avatar
    hahn authored
    da561425
    History
    init.sh.cfg 2.09 KiB
    # ======================================================================
    #
    # settings for init.sh and base values for replacements in template files
    # This script is sourced by init.sh ... this file is bash syntax
    # 
    # ----------------------------------------------------------------------
    # 2021-11-xx  <axel.hahn@iml.unibe.ch>
    # ======================================================================
    
    APP_NAME=imlcinode
    
    # web port 80 in container is seen on localhost as ...
    APP_PORT=8002
    
    # document root inside container 
    WEBROOT=/var/www/${APP_NAME}/public_html
    
    APP_APT_PACKAGES="git unzip zip rsync"
    # TODO:
    # APP_APT_PACKAGES="git unzip zip yui-compressor"
    # uglify-js yarn 
    # libpq-dev openjdk-7-jdk maven zlib1g-dev
    
    APP_APACHE_MODULES="rewrite"
    # APP_APACHE_MODULES=""
    
    APP_PHP_VERSION=8.1
    # sqlite3 is active already
    APP_PHP_MODULES="curl mbstring ldap intl xml"
    
    # ONSTARTUP="docker exec -it appmonitor-server nohup /usr/local/bin/php /var/www/appmonitor/public_html/server/service.php > /tmp/appmonitor-service.log &"
    # APP_ONSTARTUP="php ${WEBROOT}/server/service.php"
    # APP_ONSTARTUP="a2enmod rewrite"
    
    
    # ----------------------------------------------------------------------
    
    # add a container with database?
    DB_ADD=false
    
    # ----------------------------------------------------------------------
    # for an optional database server
    
    DB_PORT=13306
    
    # ----- database settings
    MYSQL_IMAGE=mariadb:10.5.9
    MYSQL_RANDOM_ROOT_PASSWORD=0
    MYSQL_ALLOW_EMPTY_PASSWORD=0
    MYSQL_ROOT_PASS=12345678
    MYSQL_USER=${APP_NAME}
    MYSQL_PASS=mypassword
    MYSQL_DB=${APP_NAME}
    
    
    # ======================================================================
    # ignore things below
    
    
    # where to set acl where local user and web user in container
    # can write simultanously
    # divide multiple dirs with space
    WRITABLEDIR="../public_html ../config ../data"
    
    
    # web service user in container
    DOCKER_USER_UID=33
    
    # document root inside web-server container 
    WEBROOT=/var/www/${APP_NAME}/public_html
    
    CUTTER_NO_DATABASE="CUT-HERE-FOR-NO-DATABASE"
    
    frontendurl=http://localhost:${APP_PORT}/
    
    # ----------------------------------------------------------------------