init
This commit is contained in:
8
.devcontainer/external/.env.example
vendored
Normal file
8
.devcontainer/external/.env.example
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
K12STUDY_DB_HOST=host.docker.internal
|
||||
K12STUDY_DB_PORT=5432
|
||||
K12STUDY_DB_NAME=k12study
|
||||
K12STUDY_DB_USER=k12study
|
||||
K12STUDY_DB_PASSWORD=k12study
|
||||
K12STUDY_REDIS_HOST=host.docker.internal
|
||||
K12STUDY_REDIS_PORT=6379
|
||||
K12STUDY_REDIS_PASSWORD=
|
||||
31
.devcontainer/external/devcontainer.json
vendored
Normal file
31
.devcontainer/external/devcontainer.json
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "K12Study External DB Dev",
|
||||
"dockerComposeFile": [
|
||||
"docker-compose.yml"
|
||||
],
|
||||
"service": "workspace",
|
||||
"workspaceFolder": "/workspaces/K12study",
|
||||
"shutdownAction": "stopCompose",
|
||||
"forwardPorts": [5173, 8080, 8081, 8082, 8088, 9000],
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"settings": {
|
||||
"terminal.integrated.defaultProfile.linux": "bash"
|
||||
},
|
||||
"extensions": [
|
||||
"vscjava.vscode-java-pack",
|
||||
"redhat.java",
|
||||
"vmware.vscode-boot-dev-pack",
|
||||
"ms-azuretools.vscode-docker",
|
||||
"ms-python.python",
|
||||
"dbaeumer.vscode-eslint",
|
||||
"esbenp.prettier-vscode"
|
||||
]
|
||||
}
|
||||
},
|
||||
"remoteEnv": {
|
||||
"SPRING_PROFILES_ACTIVE": "dev",
|
||||
"K12STUDY_DEV_MODE": "external"
|
||||
},
|
||||
"postCreateCommand": "cd /workspaces/K12study/frontend && pnpm install"
|
||||
}
|
||||
19
.devcontainer/external/docker-compose.yml
vendored
Normal file
19
.devcontainer/external/docker-compose.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
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:-}
|
||||
PYTHONUNBUFFERED: "1"
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
Reference in New Issue
Block a user