Skip to content

chillmatin/matinhuseynzade.com

Repository files navigation

License Issues - matinhuseynzade.com GitHub Release Website Astro Docker

 

matinhuseynzade.com logo

matinhuseynzade.com
Free and Open Source Blog Site

Quick Start

Prerequisites

  • Docker and Docker Compose installed

1. Set Up Environment Variables

Create a .env file in the project root:

PUBLIC_UMAMI_WEBSITE_ID=your-umami-website-id
PUBLIC_UMAMI_SCRIPT_URL=https://your-analytics-domain/script.js

These are build-time variables used by Astro. Any changes require a rebuild.

2. Deploy

Development (with hot reload):

docker compose -f docker-compose.dev.yml up --build

Open http://localhost:4321

Production:

docker compose up --build -d

The app runs on port 4321 inside the container.

Alternative: Local Development

bun install
bun run dev

Build Details

The Dockerfile uses multi-stage builds:

  • Builds the Astro app with Bun
  • Serves the app via Node.js from dist/server/entry.mjs

For pure Docker build without Compose:

docker build -t matinhuseynzade-com \
  --build-arg PUBLIC_UMAMI_WEBSITE_ID=your-umami-website-id \
  --build-arg PUBLIC_UMAMI_SCRIPT_URL=https://your-analytics-domain/script.js \
  .
docker run --rm -p 4321:4321 matinhuseynzade-com

License

This website's source code is open-sourced under the MIT License.

Acknowledgements

Initial version of the website has been forked from Astrofolio.