mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
Added docusaurus_dev
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
services:
|
||||
docusaurus:
|
||||
image: ${DOCUSAURUS_IMAGE:-node:20-alpine}
|
||||
restart: ${DOCUSAURUS_RESTART:-unless-stopped}
|
||||
volumes:
|
||||
- ${VOL_PATH:-/data}/docusaurus:/app
|
||||
environment:
|
||||
- HOST=0.0.0.0
|
||||
ports:
|
||||
- "${DOCUSAURUS_PORT:-3000}:3000"
|
||||
networks:
|
||||
- proxy
|
||||
- internal
|
||||
working_dir: /app
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- "apk add --no-cache git >/dev/null 2>&1 || true; [ -f package.json ] || npx --yes create-docusaurus@latest . classic --skip-install --package-manager npm; npm install; npm start -- --host 0.0.0.0"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
internal:
|
||||
internal: true
|
||||
Reference in New Issue
Block a user