{"id":13599305,"url":"https://github.com/Pe46dro/XBackBone-docker","last_synced_at":"2025-04-10T12:32:07.627Z","repository":{"id":42993158,"uuid":"152901660","full_name":"Pe46dro/XBackBone-docker","owner":"Pe46dro","description":"This is the Docker image for XBackBone ~ based on webdevops/php-nginx.","archived":false,"fork":false,"pushed_at":"2023-06-13T14:07:54.000Z","size":113,"stargazers_count":18,"open_issues_count":4,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T23:41:21.801Z","etag":null,"topics":["docker","dockerfile","sharex"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pe46dro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-10-13T18:21:37.000Z","updated_at":"2025-03-01T00:04:16.000Z","dependencies_parsed_at":"2024-01-14T04:44:04.604Z","dependency_job_id":"4b11396c-db85-4c2c-a11b-7d5cee581465","html_url":"https://github.com/Pe46dro/XBackBone-docker","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pe46dro%2FXBackBone-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pe46dro%2FXBackBone-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pe46dro%2FXBackBone-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pe46dro%2FXBackBone-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pe46dro","download_url":"https://codeload.github.com/Pe46dro/XBackBone-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217131,"owners_count":21066633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","dockerfile","sharex"],"created_at":"2024-08-01T17:01:02.007Z","updated_at":"2025-04-10T12:32:06.610Z","avatar_url":"https://github.com/Pe46dro.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"\n# About this Repo\n\nThis is the Docker image for [XBackBone](https://github.com/SergiX44/XBackBone) ~ based on [webdevops/php-nginx](https://dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/php-nginx.html).\n\n# Supported tags and respective `Dockerfile`\n-\t[`latest` (**THIS REPO**/src/Dockerfile)]\n-\t[`3.3`,`3.3.3` (*src/Dockerfile*)]\n-\t[`3.2`,`3.2.0` (*src/Dockerfile*)]\n-\t[`3.1`,`3.1.4` (*src/Dockerfile*)]\n-\t[`3.0`,`3.0.2`, (*src/Dockerfile*)]\n-\t[`2.6`,`2.6.5` (*src/Dockerfile*)]\n-\t[`2.6.3` (*src/Dockerfile*)]\n-\t[`2.6.0` (*src/Dockerfile*)]\n-\t[`2.5`,`2.5.3` (*src/Dockerfile*)]\n-\t[`2.5.0` (*src/Dockerfile*)]\n-\t[`2.4`, `2.4.1`, (*src/Dockerfile*)]\n-\t[`dev` (*dev/src/Dockerfile*)](https://github.com/Pe46dro/XBackBone-docker/tree/dev)\n\n# Quick reference\n\n-\t**Where to file issues**:  \n\t[https://github.com/Pe46dro/XBackBone-docker/issues](https://github.com/Pe46dro/XBackBone-docker/issues)\n\n-\t**Supported architectures**: `amd64`\n\n-\t**Supported Docker versions**:  \n\t[the latest release](https://github.com/docker/docker-ce/releases/latest) (down to 1.6 on a best-effort basis)\n\n# How to use this image\n\nYou can use the following command to start the container and map the ports to the host:\n\n```console\n$ docker run -p 80:80 \\\n    -e APP_NAME=XBackBone \\\n    -e URL=http:\\/\\/127.0.0.1 \\\n    --name xbb \\\n    pe46dro/xbackbone-docker\n```\n\n## Container shell access\nNginx erver log is available through Docker's container log:\n\n```console\n$ docker logs xbb\n```\n\n## Environment Variables\nWhen you start this image, you can adjust the configuration by passing one or more environment variables on the `docker run` command line.\n\n### `APP_NAME`\nThis will specify the app name, if none is provided the default is `XBackBone`\n`-e APP_NAME=XBackBone`\n\n### `URL`\nThis will specify the app url, slashes need to be escaped like follow\n`-e URL=http:\\/\\/127.0.0.1`\n\n### `GENERATE_RELEASE=TRUE` *dev-only*\nIf set, this environment variable will generate a release zip and will place it on `srv/xbb/storage`\n\n## Build Args Variables\nWhen you build the image yourself, you can adjust the version using the `--build-arg variable=value` parameter on the `docker build` command line.\n\n### `XBACKBONE_VERSION`\nYou can specify the tag from [XBackBone](https://github.com/SergiX44/XBackBone/releases) release and download the desired one\n\n## Where to Store Data\n### Available mount point\n*\t/app/storage\n*\t/app/resources/database\n*\t/app/logs\n*\t/app/config _(to keep config files - **Docker container only**)_\n\n### Permissions\nThe folder on host system need to have both **UID** and **GID** *1000*\n\n### PHP Customization \n\nYou can specify eg. `php.memory_limit=256M` as dynamic env variable which will set `memory_limit = 256M` as php setting.\nRefer to [webdevops documentation](https://dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/php-nginx.html#php-ini-variables) for more details\n\n| Environment variable                  \t| Description                             \t| Default   \t \t \t|\n|---------------------------------------\t|-----------------------------------------\t|-----------\t \t \t|\n| `php.{setting-key}`                   \t| Sets the `{setting-key}` as php setting \t| \t \t \t \t|\n| `PHP_DATE_TIMEZONE`                   \t| `date.timezone`                         \t| `UTC` \t \t \t|\n| `PHP_DISPLAY_ERRORS`                  \t| `display_errors`                        \t| `0` \t \t \t \t|\n| `PHP_MEMORY_LIMIT`                    \t| `memory_limit`                          \t| `512M` \t \t \t|\n| `PHP_MAX_EXECUTION_TIME`              \t| `max_execution_time`                    \t| `300` \t \t \t|\n| `PHP_POST_MAX_SIZE`                   \t| `post_max_size`                         \t| `50M` \t \t \t|\n| `PHP_UPLOAD_MAX_FILESIZE`             \t| `upload_max_filesize`                   \t| `50M` \t \t \t|\n| `PHP_OPCACHE_MEMORY_CONSUMPTION`      \t| `opcache.memory_consumption`            \t| `256` \t \t \t|\n| `PHP_OPCACHE_MAX_ACCELERATED_FILES`   \t| `opcache.max_accelerated_files`         \t| `7963` \t \t \t|\n| `PHP_OPCACHE_VALIDATE_TIMESTAMPS`     \t| `opcache.validate_timestamps`           \t| `default` \t \t \t|\n| `PHP_OPCACHE_REVALIDATE_FREQ`         \t| `opcache.revalidate_freq`               \t| `default` \t \t \t|\n| `PHP_OPCACHE_INTERNED_STRINGS_BUFFER` \t| `opcache.interned_strings_buffer`       \t| `16` \t \t \t \t|\n| ``FPM_PROCESS_MAX``       \t        \t| ``process.max``                             \t| ``distribution default`` \t|\n| ``FPM_PM_MAX_CHILDREN``     \t\t      \t| ``pm.max_children``                    \t| ``distribution default`` \t|\n| ``FPM_PM_START_SERVERS``      \t    \t| ``pm.start_servers``                      \t| ``distribution default`` \t|\n| ``FPM_PM_MIN_SPARE_SERVERS``      \t\t| ``pm.min_spare_servers``               \t| ``distribution default`` \t|\n| ``FPM_PM_MAX_SPARE_SERVERS``      \t\t| ``pm.max_spare_servers``               \t| ``distribution default`` \t|\n| ``FPM_PROCESS_IDLE_TIMEOUT``      \t\t| ``pm.process_idle_timeout``                 \t| ``distribution default`` \t|\n| ``FPM_MAX_REQUESTS``              \t\t| ``pm.max_requests``                          \t| ``distribution default`` \t|\n| ``FPM_REQUEST_TERMINATE_TIMEOUT`` \t\t| ``request_terminate_timeout``                \t| ``distribution default`` \t|\n| ``FPM_RLIMIT_FILES``              \t\t| ``rlimit_files``                             \t| ``distribution default`` \t|\n| ``FPM_RLIMIT_CORE``               \t\t| ``rlimit_core``                           \t| ``distribution default`` \t|\n\n\n\n#### Example\n```bash \nmkdir -p /srv/xbb/storage\nmkdir -p /srv/xbb/database\nmkdir -p /srv/xbb/logs\nmkdir -p /srv/xbb/config\n\nchown -R 1000:1000 /srv/xbb\n```\n\n# MySQL Database\n\n - Clone repo\n - Customize ENV flags in xbb.env\n - Build and run\n\n```bash\ngit clone https://github.com/Pe46dro/XBackBone-docker.git .\ndocker-compose up -d\n```\n\n# LDAP Authentication\nThe following environment variables are available to configure LDAP authentication:\n- ``LDAP_ENABLED``\n- ``LDAP_HOST``\n- ``LDAP_PORT``\n- ``LDAP_BASE_DOMAIN``\n- ``LDAP_USER_DOMAIN``\n- ``LDAP_RDN_ATTRIBUTE``\n\nSee the [docs](https://xbackbone.app/configuration.html#ldap-authentication) for explanation.\n\n# Manual configuration\n\nSometimes, it's more convenient to supply a `config.php` file yourself. To skip the\nauto-configuration (and prevent mangling of the configuration), set the `SKIP_CONFIGURE` environment\nvariable to any value.\n\n# Upgrade from version \u003c 3.1.4\nRun the following command before performing the upgrade:\n`echo '-' \u003e YOUR_STORAGE_VOLUME/storage/.installed`\n\n# Mantainer\n * [Pe46dro](https://github.com/Pe46dro) - Creator\n\n# License\n\nView [license information](LICENSE) for the software contained in this image.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPe46dro%2FXBackBone-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPe46dro%2FXBackBone-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPe46dro%2FXBackBone-docker/lists"}