mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
25 lines
644 B
YAML
25 lines
644 B
YAML
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
|