Go to file Use this template
2023-12-06 11:14:31 +01:00
apache-conf removed unused lines 2023-12-06 11:10:46 +01:00
php-conf inital commit 2023-11-26 12:24:49 +01:00
.env.sample inital commit 2023-11-26 12:24:49 +01:00
.gitignore inital commit 2023-11-26 12:24:49 +01:00
docker-compose.yml append .htaccess allow login after rebuild volume 2023-12-05 11:00:02 +01:00
init clean 2023-11-29 14:22:58 +01:00
LICENSE Initial commit 2023-11-25 14:16:24 +01:00
README.md changed readme 2023-12-01 18:10:35 +01:00

traefik typo3

get started

you will need a .env file

sample .env:

# .env

MYSQL_ROOT_PASSWORD=PASSWORD

MYSQL_DATABASE=typo3
MYSQL_USER=DATABASEUSER
MYSQL_PASSWORD=DATABASEPASSWORD

PROJECT_URL=typo3.localhost
PROJECT_NAME=sample

TRAEFIK_NETWORK=traefik_net

PROJECT_DATA=./data

If you want to make the first install steps uncomment following line in your docker-compose.yml in the volumes configuration from the TYPO3.

  # - "./LICENSE:/var/www/html/FIRST_INSTALL:ro"

after your the installation you should comment this part again thet your ${PROJECT_DATA}/typo3conf/system/settings.php from the will not change.

the container has just sendmail installed to change this you should change the settings.php for your mail and secure for the reversproxy.

for development:

'transport_sendmail_command' => '/usr/sbin/sendmail -bs',

and append / set:

['SYS'][
	...
	'systemLocale' => 'de_AT.UTF-8',
	'reverseProxyHeaderMultiValue' => 'first',
    'reverseProxyIP' => '127.0.0.1',
    'features' => [ 
		...
		'security.backend.enforceReferrer] => false,
		'security.backend.enforceContentSecurityPolicy' => false,
	]
]

because we are behind the reverse proxy.

then execute init with

./init

use in the install wizard for the db connection "db" and the port 3306 and use pdo_mysql driver.

now the typo3 first install should be accessable: https://${PROJECT_URL} if you use the sample .env: https://typo3.localhost

after the install there is at the a error.

we have to set in the ${PROJECT_DATA}/typo3conf/settings/settings.php

['SYS']['features']['security.backend.enforceReferrer'] = true

because we are behind the reverse proxy.