Skip to content

Comments

[Example] Add franken php runtime#102

Draft
alexander-schranz wants to merge 1 commit intomasterfrom
example/franken-php
Draft

[Example] Add franken php runtime#102
alexander-schranz wants to merge 1 commit intomasterfrom
example/franken-php

Conversation

@alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented Oct 17, 2022

What's in this PR?

Shows an example how to run Sulu with FrankenPHP.

More on our Blog: https://sulu.io/blog/running-sulu-with-frankenphp

Requires currently a custom build:

docker build -t custom-franken-php .

Update the .env.local to allow connection inside docker to host:

DATABASE_URL=mysql://root:ChangeMe@host.docker.internal:3306/su_demo?serverVersion=8.0
ELASTICSEARCH_HOST=host.docker.internal:9200
REDIS_HOST=host.docker.internal:6379

Run the Dockerimage:

docker run -e FRANKENPHP_CONFIG="worker ./public/index.php" -v $PWD:/app -p 80:80 -p 443:443 custom-franken-php

open https://localhost/

@alexander-schranz alexander-schranz force-pushed the example/franken-php branch 2 times, most recently from 0b059ef to 23a4525 Compare October 17, 2022 23:37
@alexander-schranz alexander-schranz added the Example Example implementations label Oct 30, 2022
@alexander-schranz alexander-schranz changed the title WIP: Example: Add franken php runtime Example: Add franken php runtime Oct 30, 2022
@alexander-schranz alexander-schranz force-pushed the example/franken-php branch 3 times, most recently from a18e8a0 to d5425f9 Compare October 31, 2022 13:28
@alexander-schranz alexander-schranz changed the title Example: Add franken php runtime [Example] Add franken php runtime Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Example Example implementations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant