Created
December 17, 2024 09:19
-
-
Save arifnd/899dbb3e6a541cf9d9813be52268bef3 to your computer and use it in GitHub Desktop.
Docker compose for deploy Laravel with FrankenPHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| php: | |
| # uncomment the following line to use a version of PHP that supports your application | |
| image: dunglas/frankenphp #php8.4 | |
| # image: dunglas/frankenphp:php8.3 | |
| # image: dunglas/frankenphp:php8.2 | |
| # uncomment the following line if you want to use a custom Dockerfile | |
| #build: . | |
| # uncomment the following line if you want to run this in a production environment | |
| # restart: always | |
| environment: | |
| - SERVER_NAME=your-domain-name.example.com | |
| ports: | |
| - "80:80" # HTTP | |
| - "443:443" # HTTPS | |
| - "443:443/udp" # HTTP/3 | |
| volumes: | |
| - ./:/app | |
| - caddy_data:/data | |
| - caddy_config:/config | |
| # comment the following line in production, it allows to have nice human-readable logs in dev | |
| tty: true | |
| # Volumes needed for Caddy certificates and configuration | |
| volumes: | |
| caddy_data: | |
| caddy_config: |
Author
kalau dari file di atas mengikuti bawaanya FrankenPHP
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
untuk config caddy_daya sama caddy_confignya kayak apa bang?