{"id":19730434,"url":"https://github.com/fnagel/docker-typo3","last_synced_at":"2025-07-19T10:37:14.483Z","repository":{"id":47268521,"uuid":"119040998","full_name":"fnagel/docker-typo3","owner":"fnagel","description":"WIP - Docker files for TYPO3 CMS","archived":false,"fork":false,"pushed_at":"2025-03-26T09:03:13.000Z","size":123,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-30T01:37:27.748Z","etag":null,"topics":["docker","docker-compose","docker-image","typo3","typo3-cms"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fnagel.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-01-26T10:52:12.000Z","updated_at":"2025-04-05T11:58:07.000Z","dependencies_parsed_at":"2024-03-27T00:24:10.069Z","dependency_job_id":"02d87923-30c9-49fc-ab70-fd28e6b1c1ea","html_url":"https://github.com/fnagel/docker-typo3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fnagel/docker-typo3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnagel%2Fdocker-typo3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnagel%2Fdocker-typo3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnagel%2Fdocker-typo3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnagel%2Fdocker-typo3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fnagel","download_url":"https://codeload.github.com/fnagel/docker-typo3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnagel%2Fdocker-typo3/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265918562,"owners_count":23849181,"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","docker-compose","docker-image","typo3","typo3-cms"],"created_at":"2024-11-12T00:16:20.903Z","updated_at":"2025-07-19T10:37:14.427Z","avatar_url":"https://github.com/fnagel.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TYPO3 Docker\n\n\n## What is this?\n\nYet another TYPO3 CMS Docker package based upon PHP and Apache. It's simple, understandable and yet fully functional.\n\n_Suitable for development and production._\n\n\n**What is included?**\n\n* A minimal production image\n* A development image with\n\t* SSL support\n\t* Composer\n    * Xdebug\n    * Mailhog\n    * Adminer\n    * Node.js (with npm)\n* A TYPO3 CMS \"Introduction package\" image\n* A simple way to create an image for your custom project\n\n\n## Usage\n\n* Adjust `.env` file\n* Create base image\n* Create dev image (optional)\n* Create demo or project container\n\n\n### Base images\n\nBase images for running TYPO3 CMS. Needed as base images for demo and project container.\n\n\n#### Production\n\nBuild and run a minimal production / base image:\n\n```\ndocker-compose build\n```\n\nThis will create the `fnagel/docker-typo3-webserver` image.\n\n\n#### Development\n\nBuild a container with development tools (composer, xdebug, etc.):\n\n```\ndocker-compose -f docker-compose.yml -f docker-compose.dev.yml build\n```\n\nThis will create the `fnagel/docker-typo3-webserver-dev` image.\n\n\n### Demo (Introduction Package)\n\n**Create images**\n\nBuild and run a container with installed and fully functional introduction package:\n\n```\ndocker-compose -f docker-compose.yml -f docker-compose.demo.yml up --build -d\n```\n\nor with development tools:\n\n```\ndocker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.demo.yml up --build -d\n```\n\n**Setup demo**\n\nUse the following command to install the introduction package using TYPO3 console:\n\n```\ndocker-compose exec webserver bash ./install.sh\n```\n\nDefault domain is [http://demo.typo3.local]()\n\n\n### Use with existing projects\n\n**Project requirements**\n\n* A GIT repository for your project\n* A `composer` based TYPO3 project\n* Using `/web` folder for all public files (using the `web-dir` directive, see composer.json in `/demo` folder)\n\n**How to integrate with your existing TYPO3 CMS project**\n\n* Clone this repository to `.docker` sub folder of your project\n* Copy the `.env` file to your project root folder and change variables as needed\n* Run the following commands:\n\n```\ndocker-compose -f .docker/docker-compose.yml -f .docker/docker-compose.project.yml up --build -d\n```\n\n**This will:**\n\n* Create production image with web server and database\n* Copy your local files into the container\n* Install your composer dependencies\n\n**Copy files:**\n\nUse the following command to import more static files to the volume:\n\n```\ndocker cp ./web/folder webserver:/var/www/html/\n```\n\n**Import database:**\n\nUse the following command to import your database:\n\n```\ndocker-compose run db bash -c 'mysql -uroot -p\"$MYSQL_ROOT_PASSWORD\" -h db $MYSQL_DATABASE' \u003c .docker/project/data/db.sql\n```\n\nOr with a gzip file:\n\n```\ndocker-compose run --rm db bash -c 'gunzip | mysql -uroot -p\"$MYSQL_ROOT_PASSWORD\" -h db $MYSQL_DATABASE' \u003c .docker/project/data/db.sql.gz \u0026\u003e /dev/null\n```\n\n\n### Database credentials\n\nDefault values for the database connection see `MYSQL_*` variables in the `.env` file.\n\n\n### Change PHP version\n\nChange the `DOCKER_PHP_TAG` variable in the `.env` file.\n\n\n### Change PHP settings\n\nUse `vim /usr/local/etc/php/conf.d/custom.ini` to add or change PHP settings.\n\n\n## Hints\n\n* \"Docker Toolbox for Windows\"\n    * You might need to run `@FOR /f \"tokens=*\" %i IN ('docker-machine env') DO @%i` on Windows\n    * Increase disk size:\n        `docker-machine rm default` and\n        `docker-machine create -d virtualbox --virtualbox-disk-size \"100000\" default`\n        This creates a 100 GB disk but erases all exiting data!\n\n* \"Docker for Windows WSL\"\n    * Move data file: https://stackoverflow.com/a/63752264/991681\n\n* Clean up on down (unused images and volumes): `docker-compose down --rmi local -v`\n\n* Clean up radical (be VERY careful): `docker image prune -a`\n\n* Do a clean build by using: `docker-compose build --no-cache `\n\n* Possible errors:\n    * `ERROR: for xyz Cannot start service xyz: network 12345 not found`\n        * Use `docker-compose up --force-recreate`\n\n    * `ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network`\n    * `Error  failed to create xyz: Error response from daemon: all predefined address pools have been fully subnetted`\n        * List your networks `docker network ls`\n        * Remove unused networks `docker network rm SOME_NETWORK_ID`\n\n    * `AH00526: Syntax error on line 170 of /etc/apache2/apache2.conf: Multiple \u003cDirectory\u003e arguments not (yet) supported.`\n        * Remove `/` from beginning of `APACHE_DOCUMENT_ROOT` env variable value\n\n## ToDo\n\n* Document env file issue and workaround\n\n* Add simple docker.sh file?\n\n* `APACHE_DOCUMENT_ROOT` with leading slash will add local Windows path, so we remove the `/` at the beginning\n    * This is the case when using sh files with docker commands in it, e.g. `bash docker.sh up`\n    * Using bash will end up in docker auth error, unsure why\n    * Using sh instead of bash as command works but produces the above described error\n\n* Document ftp usage\n\n* Sync folder (shared volumes) see `sync` and `remove-symlinks` branch -\u003e obsolete due to bad performance\n\n\n## Credits\n\nThanks to @jzaefferer (@sloppyio) for the help getting started with docker!\n\n**Resources**\n\n* https://github.com/sloppyio/quickstarters\n* https://github.com/docker-library/wordpress\n* https://github.com/t3easy/docker-typo3\n* https://writing.pupius.co.uk/apache-and-php-on-docker-44faef716150\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnagel%2Fdocker-typo3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnagel%2Fdocker-typo3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnagel%2Fdocker-typo3/lists"}