services:
  loja-marqs:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: loja-marqs
    restart: unless-stopped
    ports:
      - "8082:8000"
    environment:
      APP_ENV: production
      APP_DEBUG: "false"
      APP_URL: http://localhost:8082
      DB_CONNECTION: sqlite
      DB_DATABASE: /var/www/html/storage/app/database/database.sqlite
      SESSION_DRIVER: file
      CACHE_STORE: file
      QUEUE_CONNECTION: database
    volumes:
      - .:/var/www/html
      - loja-marqs-storage:/var/www/html/storage
      - loja-marqs-bootstrap-cache:/var/www/html/bootstrap/cache
    command: ["/bin/sh", "/var/www/html/docker/start.sh"]

volumes:
  loja-marqs-storage:
  loja-marqs-bootstrap-cache:
