2026-04-14 16:27:47 +08:00
|
|
|
services:
|
|
|
|
|
workspace:
|
|
|
|
|
image: mcr.microsoft.com/devcontainers/universal:2
|
|
|
|
|
volumes:
|
|
|
|
|
- ../../:/workspaces/K12study:cached
|
|
|
|
|
working_dir: /workspaces/K12study
|
|
|
|
|
command: sleep infinity
|
|
|
|
|
environment:
|
|
|
|
|
K12STUDY_DB_HOST: ${K12STUDY_DB_HOST:-host.docker.internal}
|
|
|
|
|
K12STUDY_DB_PORT: ${K12STUDY_DB_PORT:-5432}
|
|
|
|
|
K12STUDY_DB_NAME: ${K12STUDY_DB_NAME:-k12study}
|
|
|
|
|
K12STUDY_DB_USER: ${K12STUDY_DB_USER:-k12study}
|
|
|
|
|
K12STUDY_DB_PASSWORD: ${K12STUDY_DB_PASSWORD:-k12study}
|
|
|
|
|
K12STUDY_REDIS_HOST: ${K12STUDY_REDIS_HOST:-host.docker.internal}
|
|
|
|
|
K12STUDY_REDIS_PORT: ${K12STUDY_REDIS_PORT:-6379}
|
|
|
|
|
K12STUDY_REDIS_PASSWORD: ${K12STUDY_REDIS_PASSWORD:-}
|
2026-04-14 18:14:41 +08:00
|
|
|
K12STUDY_REGISTRY_HOST: ${K12STUDY_REGISTRY_HOST:-host.docker.internal}
|
|
|
|
|
K12STUDY_REGISTRY_PORT: ${K12STUDY_REGISTRY_PORT:-8848}
|
|
|
|
|
K12STUDY_REGISTRY_GRPC_PORT: ${K12STUDY_REGISTRY_GRPC_PORT:-9848}
|
|
|
|
|
K12STUDY_REGISTRY_RAFT_PORT: ${K12STUDY_REGISTRY_RAFT_PORT:-9849}
|
2026-04-14 16:27:47 +08:00
|
|
|
PYTHONUNBUFFERED: "1"
|
|
|
|
|
extra_hosts:
|
|
|
|
|
- "host.docker.internal:host-gateway"
|