Files
skillshare/.devcontainer/docker-compose.yml
T
Willie 578be7ebd9 chore(devcontainer): move docs server from port 3000 to 8888
Port 3000 collides with other local services, blocking the devcontainer from
starting. Move the Docusaurus docs server to 8888 across the docs script,
dev-servers orchestration, compose port mapping, and forwarded ports/labels.
2026-05-30 19:23:12 +08:00

36 lines
962 B
YAML

# Devcontainer-only service: no profile restriction, stays alive for VS Code attach.
# Reuses the same Dockerfile and volume setup as sandbox-dev.
name: skillshare_devcontainer
services:
skillshare-devcontainer:
build:
context: ..
dockerfile: docker/sandbox/Dockerfile
working_dir: /workspace
command: sleep infinity
environment:
HOME: /home/developer
GOCACHE: /go/build-cache
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
GITLAB_TOKEN: ${GITLAB_TOKEN:-}
BITBUCKET_TOKEN: ${BITBUCKET_TOKEN:-}
BITBUCKET_USERNAME: ${BITBUCKET_USERNAME:-}
SKILLSHARE_GIT_TOKEN: ${SKILLSHARE_GIT_TOKEN:-}
ports:
- "5173:5173"
- "19420:19420"
- "8888:8888"
volumes:
- ..:/workspace
- go-mod-cache:/go/pkg/mod
- go-build-cache:/go/build-cache
- dev-home:/home/developer
security_opt:
- no-new-privileges:true
volumes:
go-mod-cache:
go-build-cache:
dev-home: