GithubHelp home page GithubHelp logo

Docker compose? about quartz HOT 3 CLOSED

CheeseFM avatar CheeseFM commented on September 24, 2024
Docker compose?

from quartz.

Comments (3)

gpullela avatar gpullela commented on September 24, 2024

Were you able to solve this issue @CheeseFM ? I've been wanting to host quartz on my raspberry pi 5 (it runs Umbrel OS) in a container but I'm also having trouble figuring it out. Portainer (not using docker since it's not recommended to use docker directly on Umbrel) only allow images from docker-hub so building the image specific to the device is something I am having trouble with as well.

from quartz.

ZetaKebab avatar ZetaKebab commented on September 24, 2024

Hello, you can do something like:

services:
  quartz:
    image: quartz
    build:
      context: .
      dockerfile: Dockerfile
    environment:
      NODE_ENV: production
    container_name: quartz-container
    restart: always
    ports:
      - 8080:8080

from quartz.

Homoe-hs avatar Homoe-hs commented on September 24, 2024

If you'd like use the docker image I build and the docker-compose I write, here is something useful.

version: '3.8'

services:
  quartz:
    image: hesheng00/quartz:0.2.0
    container_name: quartz
    ports:
      - "7979:8080"  # 将容器的 8080 端口映射到主机的 7979 端口或其他端口
    volumes:
      - ./content:/usr/src/app/content  # 挂载本地内容目录到容器内
    environment:
      HUGO_ENV: production  # 设置环境变量,指定生产环境
    restart: unless-stopped  # 自动重启容器,除非手动停止

It is working fine on my nas.

from quartz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.