Giter VIP home page Giter VIP logo

docker-typo3's Introduction

dkd/docker-typo3

Out-of-the-box TYPO3 docker image which can be linked to MySQL.

CREDITS

This image is highly inspired by (tutum-docker-wordpress-nosql)[https://registry.hub.docker.com/u/tutum/wordpress-stackable/]!

Usage (standalone)

This image needs an external MySQL server or linked MySQL container. To create a MySQL container:

docker run -d -e MYSQL_PASS="<your_password>" --name db -p 3306:3306 tutum/mysql:5.5

To run TYPO3 by linking to the database created above:

docker run -d --link db:db -e DB_PASS="<your_password>" -p 80:80 dkdde/typo3

Now, you can use your web browser to access TYPO3 from the the follow address:

http://localhost/typo3

User is "admin" and password is "password".

Usage (as a base image)

If you want to use it as a base image to create your customized version of TYPO3, you can do so by creating a Dockerfile similar to the following:

FROM dkdde/typo3:latest

# Add an initial data which will be automatically loaded when creating the database for the first time
ADD initial_db.sql /initial_db.sql

# Add a custom composer.json
ADD composer.json /app/composer.json

docker-typo3's People

Contributors

ksjogo avatar sascha-egerer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-typo3's Issues

DB_HOST not set

When I start this docker image and enter the container using:

docker exec -t -i typo3 /bin/bash

I can do "echo $DB_HOST" or "export" but the "DB_HOST" (and DB_PORT) variables are still set to LinkMe ... thus the getenv() in AdditionalConfiguration.php does not work and I can't access the TYPO3 installation.

When i do a "ps a x" inside the container I can see that the run-scripts are executed in the following fashion:

/bin/bash -c /run-typo3.sh && /run.sh

Sadly the "DB_HOST" and "DB_PORT" set in "run-typo3.sh" will not get exported to "run.sh" and thus to the apache process. I circumvented the problem by:

  1. moving the "run.sh" script to a script named "run-apache.sh"
  2. creating an empty (executable) "run.sh" script
  3. Added a line /run-apache.sh at the end of run-typo3.sh

Can you confirm this issue? Or did I do something wrong?

Docker hangs indefinitely

PS C:\Users\user> docker run -d --link db:db -e DB_PASS="mypass" -p 80:80 dkdde/typo3
Unable to find image 'dkdde/typo3:latest' locally
latest: Pulling from dkdde/typo3
6ffe5d2d6a97: Already exists
f4e00f994fd4: Already exists
e99f3d1fc87b: Already exists
a3ed95caeb02: Already exists
c10ab9e629d8: Already exists
5c65b067601c: Already exists
2cbc3ddde9c1: Already exists
9a5e857e989f: Waiting

New composer.json in own dockerfile doesn't get installed

Following your instructions to add a custom composer.json doesn't work.

Building and running the created dockerfile leads to a container where the new composer.json is added but not installed.

composer install is not executed anymore.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.