traefik_typo3/README.md

75 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2023-11-26 12:24:49 +01:00
# traefik typo3
2023-11-25 14:16:24 +01:00
2023-11-26 12:24:49 +01:00
## 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
2023-11-29 12:13:26 +01:00
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',
2023-12-01 18:10:35 +01:00
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,
]
]
2023-11-29 12:13:26 +01:00
because we are behind the reverse proxy.
2023-11-26 12:24:49 +01:00
then execute init with
2023-11-26 12:25:23 +01:00
./init
2023-11-26 12:24:49 +01:00
2023-11-29 12:13:26 +01:00
use in the install wizard for the db connection "db" and the port 3306 and use pdo_mysql driver.
2023-11-26 12:24:49 +01:00
now the typo3 first install should be accessable: https://${PROJECT_URL}
if you use the sample .env: https://typo3.localhost
2023-11-29 12:13:26 +01:00
2023-11-26 12:24:49 +01:00
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.