traefik_typo3/README.md
2023-11-29 12:13:26 +01:00

65 lines
1.4 KiB
Markdown

# 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:
['SYS']['features']['security.backend.enforceReferrer'] = true
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.