Skip to content

dxnz-id/docker-labnotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📘 Documentation Setup: Laravel Filament labnotes with Docker

This documentation explains the steps to run the Laravel Filament labnotes project using Docker through the docker-labnotes repository.

📦 Repositories Used


🚀 Installation Steps

1. Clone Both Repositories

git clone https://github.com/dxnz-id/labnotes.git
git clone https://github.com/dxnz-id/docker-labnotes.git

2. Setup the labnotes Project

Follow the documentation available in labnotes to configure the project to run normally in development mode.

Ensure the project runs properly before moving it to Docker.

3. Move the Project into Docker

Copy all contents of the labnotes folder into the app/ folder inside docker-labnotes/.

cp -r labnotes/* docker-labnotes/app/

Ensure the directory structure looks like this:

docker-labnotes/
├── app/
│   ├── artisan
│   ├── app/
│   ├── public/
│   └── ...

4. Navigate to the docker-labnotes Folder

cd docker-labnotes

5. Configure .env for Laravel

Copy the example .env file and adjust the database configuration in the docker-compose.yml file:

cp .env.example app/.env

6. Build the Docker Container

docker compose build

7. Start Docker

docker compose up -d

8. Access the Container

Enter the container using the following command:

docker exec -it franken bash

franken is the name of the main container (app). Ensure it matches the name in the docker-compose.yml file.

9. Run Migrations and Seeders

Inside the container, run:

php artisan migrate --seed

10. Link Storage

Still inside the container, run:

php artisan storage:link

Contact

For any inquiries, feel free to reach out!

ko-fi

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published