Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add production deployment guide #471

Merged
merged 7 commits into from
Jan 12, 2024
Merged

docs: add production deployment guide #471

merged 7 commits into from
Jan 12, 2024

Conversation

dunglas
Copy link
Owner

@dunglas dunglas commented Jan 11, 2024

Embed and replace #261.
Closes #220.

Text adapted from #261 and https://github.com/dunglas/symfony-docker/blob/main/docs/production.md.

#ENV SERVER_NAME=:80

# Enable PHP production settings
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need to do the sed here to change variable order or anything?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure to be honest :D


If you want to deploy your app on a cluster of machines, you can use [Docker Swarm](https://docs.docker.com/engine/swarm/stack-deploy/),
which is compatible with the provided Compose files.
To deploy on Kubernetes, take a look at [the Helm chart provided with API Platform](https://api-platform.com/docs/deployment/kubernetes/), which can be easily adapted for use with Symfony Docker.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd also recommend https://caddyserver.com/docs/modules/caddy.storage.s3#github.com/ss098/certmagic-s3 to store certificates in a shared way across multiple servers. That might be out of scope here, but it works exceptionally well.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should do that in the API Platform chart.

@dunglas dunglas merged commit 00b1d0e into main Jan 12, 2024
40 checks passed
@dunglas dunglas deleted the docs/deploy branch January 12, 2024 15:53
@staudenmeir
Copy link

Hi @dunglas,
The two images aren't loading on the website due to a trailing slash in the image URLs: https://frankenphp.dev/docs/production/

Bildschirmfoto 2024-01-12 um 17 33 49
Bildschirmfoto 2024-01-12 um 17 36 00

The Markdown looks correct, so probably an issue with the HTML generation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request for Documentation: Deployment Guides for FrankenPHP on Various Platforms
4 participants