summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 29109e6e4499ce4cf87160220183fdd6c321ac2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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