Can I develop a Pages project on a localhost machine?

We do not yet have a properly configured GitLab Pages server so my goal is to be able to just develop a Pages project on my localhost and then eventually when our GitLab instance is properly setup, I can move my developed project over to it.

But for now, I would just like to be able to add the theme and create the markup in order to develop the project on my localhost machine.

What I have available to me is a GitLab instance where I cannot modify any of the domains. I’d like to be able to run Pages in a Docker container if possible, but it must stay on my localhost due to the nature of the work.

Is there any way possible to do any of this?

You won’t need to run a local Pages webserver for development, there are alternatives.

If you are using a static site generator like Hugo, its CLI provides a server command which spawns a local http development server.

Example: The GitLab handbook uses Hugo and GitLab Pages. For local development, we run a local Hugo server. Running the Handbook Locally | The GitLab Handbook

If you do not have a server for static html/js code, you can leverage different language frameworks that offer local development servers. I often use these

# requires NodeJS
npx serve 

# requires Python 
python -m http.server 8000

AI knows a lot more, I asked GitLab Duo Chat.