summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docker-compose.yml19
1 files changed, 17 insertions, 2 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 8d23d0d..29109e6 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,10 +1,25 @@
-version: "3"
+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:
- command: jekyll serve --verbose --incremental --force_polling
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
+