Reputation: 9
version: "3.7"
services:
mysql:
image: mysql:5.7
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: typo3
MYSQL_USER: root
MYSQL_PASSWORD: password
volumes:
- mysql-data:/var/lib/mysql
ports:
- "3308:3306"
typo3:
image: webdevops/typo3
container_name: typo3
environment:
TYPO3_DB_HOST: mysql
TYPO3_DB_PORT: 3306
TYPO3_DB_NAME: typo3
TYPO3_DB_USER: root
TYPO3_DB_PASSWORD: password
volumes:
- typo3-data:/var/www/html
ports:
- "7070:80"
depends_on:
- mysql
restart: always
volumes:
mysql-data:
typo3-data:
1.How can I correctly install TYPO3 headless using Composer in this setup?
2.How do I upgrade PHP to 8.2 in my Hetzner Cloud environment?
3.Once installed, how do I access the TYPO3 REST API for headless CMS usage?
What did you try and what were you expecting?
i tried to install headless using composer. but an error came up showing that php 8.2 is required. how install headless in PHP 7.5.2
Upvotes: 0
Views: 49
Reputation: 674
Which version of TYPO3 are you trying to install?
The webdevops/typo3 docker image was last updated 5years ago, and it contains outdated and not supported PHP v7.
Sounds like you're using typo3 version from over 5 years ago together with ancient PHP and trying to instal newest TYPO3 Headless package (which requires php 8).
Upvotes: 0