Back

Log in - Error 419 Session has expired when using Docker


I have a problem with Laravel 5.7 when trying to log in by using Docker-compose There is no problem when I run as non-docker (apache, localhost, linux). Here is my docker-compose.yml

version: "3"
services:
  app:
    image: webdevops/php-apache-dev:7.1
    networks:
      - proxy
    volumes:
      - /var/www/html/bookshelf:/app
    environment:
      - PHP_DEBUGGER=xdebug
      - PHP_DISPLAY_ERRORS=1
      - PHP_DATE_TIMEZONE=Asia/Ho_Chi_Minh
      - WEB_DOCUMENT_ROOT=/app/public
    labels:
      - traefik.enable=true
      - traefik.backend=bookshelf
      - traefik.frontend.rule=Host:dev.bookshelf.com
      - traefik.docker.network=proxy
      - traefik.port=80
  nodejs:
    image: node:8
    stdin_open: true
    networks:
      - proxy
    volumes:
      - /var/www/html/bookshelf:/app
networks:
  proxy:
    external: true

Does anyone has solution? Thanks in advance


Sign in to participate in this thread!



We'd like to thank these amazing companies for supporting us