Mimach's avatar
Level 1

Deploy Laravel with Franken Docker and Traefik

Hello, Is someone already deployed a Laravel/Franken/Docker with Traefik ? I'm trying to deploy one. And all I tried, at the best, give me a bad gateway error. Here my traefik config :

The traefik.yml
entryPoints:
  web:
    address: ":80"
  websecure:
    address: ":443"

http:
  middlewares:
    test-redirectscheme:
      redirectScheme:
        scheme: https
        permanent: true

certificatesResolvers:
  myresolver:
    acme:
      email: ****@gmail.com
      storage: acme.json
      httpChallenge:
        entryPoint: web

providers:
  docker:
    exposedByDefault: false

franken docker-compose.yml

I'm using Octane on top of Laravel. And the last my Dockerfile

In my entrypoint I just have supervisor start the php artisan octane:frankenphp. Do you know what's wrong ? I tried all I could.

0 likes
1 reply
danielpetrica's avatar

It's probably late but as I'm interested in the topic can you configure traefik to point to port 8000? maybe FrankenPhp points to that automatically.

Please or to participate in this conversation.