version: "3.3" services: typescript: image: node:20 command: sh -c "cd /mnt && npm ci && npm run build" restart: on-failure volumes: - ./tsup.config.ts:/mnt/tsup.config.ts - ./package.json:/mnt/package.json - ./package-lock.json:/mnt/package-lock.json - ./assets:/mnt/assets site: image: jekyll/jekyll:latest command: jekyll serve --verbose --incremental --force_polling --config _config.yml,_config.docker.yml environment: - JEKYLL_ENV=docker volumes: - .:/srv/jekyll ports: - 4000:4000 depends_on: typescript: condition: service_completed_successfully