Public | Automated Build

Last pushed: 10 months ago
Short Description
A basic image with typo3 installation.
Full Description

docker-base-typo3

Basic typo3 setup. Always tagged with the Version of typo3 to use.

Extend the image with your code. Example in Dockerfile:

FROM bjoernheneka/docker-base-typo3:6.2.23

ADD src/htdocs/fileadmin /var/www/site/htdocs/fileadmin
ADD src/htdocs/typo3conf /var/www/site/htdocs/typo3conf
ADD src/htdocs/.htaccess /var/www/site/htdocs/.htaccess

RUN chown -Rf www-data.www-data /var/www/site/htdocs/

Database connection

You can define your external database credentials with the environment Variables below.

    DB_NAME: DBNAME
    DB_HOST: db
    DB_PASSWORD: PASSWORD
    DB_PORT: '3306'
    DB_USERNAME: USERNAME

Userdata

The fileadmin/user_upload and uploads folders can be mounted as volumes.
Therfore use the -v /<your-folder>:/data

Compose example

This compose file expects you Dockerfile within the same directory.

typo3:
  build: .
  environment:
    DB_NAME: dbname
    DB_HOST: my.database.host
    DB_PASSWORD: myS3cr3t
    DB_PORT: 3306
    DB_USERNAME: username
  volumes:
  - /my-local-userdata:/data
Docker Pull Command
Owner
bjoernheneka
Source Repository

Comments (0)