Using the october docker custom build

hey guys, apologies if I post rudimentary questions, I am not that experience with octobercms or docker

I am trying to use the custom docker build for octobercms

But I am not sure what I am doing

The steps I did are these:

  1. installed october inside wsl2 using composer
  2. Copied the dockerfile and files from the repo into the project folder
  3. run docker build -t myoctober:latest . --build-arg LICENSE_KEY=********************
  4. then docker run -p 80:80 --name october myoctober:latest
  5. went to localhost and set up an admin account

not sure what to do next, how do I set up a database?

I tried running php artisan october:install like it says in the documentation, but artisan says that command doesnt exist, even thought other october commands are there

so not sure how to move forward, I would greatly appreciate any direction you can give me

The docker image uses SQLite by default which is a file-based database engine. So the database is already set up by this point.

You can swap this out by updating these lines in the Dockerfile:

RUN sed -i 's/DB_CONNECTION=mysql/DB_CONNECTION=sqlite/' .env && \
    sed -i 's/DB_DATABASE=database/DB_DATABASE=storage\/database.sqlite/' .env