Skip to content

Instantly share code, notes, and snippets.

@arifnd
Created December 17, 2024 09:19
Show Gist options
  • Select an option

  • Save arifnd/899dbb3e6a541cf9d9813be52268bef3 to your computer and use it in GitHub Desktop.

Select an option

Save arifnd/899dbb3e6a541cf9d9813be52268bef3 to your computer and use it in GitHub Desktop.
Docker compose for deploy Laravel with FrankenPHP
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:
@mangsurali
Copy link

untuk config caddy_daya sama caddy_confignya kayak apa bang?

@arifnd
Copy link
Author

arifnd commented Jan 6, 2025

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