1
0

add: docker compose file for DB

This commit is contained in:
alikia2x (寒寒) 2026-01-13 21:43:21 +08:00
parent 15ec540c8f
commit d959f8851d
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 56209E0CCD8420C6
3 changed files with 42 additions and 1 deletions

View File

@ -1,5 +1,6 @@
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<option name="AUTODETECT_INDENTS" value="false" />
<option name="LINE_SEPARATOR" value="&#10;" />
<HTMLCodeStyleSettings>
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
@ -19,6 +20,29 @@
<option name="TYPE_CASE" value="3" />
<option name="CUSTOM_TYPE_CASE" value="3" />
<option name="ALIAS_CASE" value="4" />
<option name="QUERY_SECTION_1ST_WORD_ALIGN" value="0" />
<option name="QUERY_EL_LINE" value="0" />
<option name="QUERY_IN_ONE_STRING" value="0" />
<option name="WITH_EL_LINE" value="0" />
<option name="WITH_EL_WRAP" value="0" />
<option name="SELECT_EL_LINE" value="0" />
<option name="SELECT_EL_WRAP" value="0" />
<option name="SELECT_ALIGN_AS" value="false" />
<option name="FROM_EL_LINE" value="1" />
<option name="FROM_EL_WRAP" value="0" />
<option name="FROM_WRAP_JOIN_1" value="false" />
<option name="FROM_WRAP_JOIN_2" value="false" />
<option name="FROM_INDENT_JOIN" value="false" />
<option name="FROM_ONLY_JOIN_INDENT" value="2" />
<option name="FROM_PLACE_ON" value="10" />
<option name="WHERE_EL_LINE" value="0" />
<option name="WHERE_EL_WRAP" value="0" />
<option name="ORDER_EL_LINE" value="0" />
<option name="ORDER_EL_WRAP" value="0" />
<option name="ROUTINE_ARG_WRAP" value="1" />
<option name="EXPR_CASE_WHEN_WRAP" value="false" />
<option name="EXPR_CASE_WHEN_INDENT" value="false" />
<option name="EXPR_CASE_COLLAPSE" value="false" />
</PostgresCodeStyleSettings>
<TypeScriptCodeStyleSettings version="0">
<option name="FORCE_SEMICOLON_STYLE" value="true" />
@ -45,6 +69,11 @@
<option name="USE_TAB_CHARACTER" value="true" />
</indentOptions>
</codeStyleSettings>
<codeStyleSettings language="PostgreSQL">
<indentOptions>
<option name="USE_TAB_CHARACTER" value="true" />
</indentOptions>
</codeStyleSettings>
<codeStyleSettings language="TypeScript">
<option name="SOFT_MARGINS" value="120" />
<indentOptions>

View File

@ -0,0 +1,12 @@
services:
db:
image: ghcr.io/alikia2x/cvsa/pg:latest
container_name: cvsa-pg
command: postgres -c config_file=/etc/postgresql/postgresql.conf
env_file:
- .env.pg
ports:
- "5432:5432"
volumes:
- cvsa_data:/var/lib/postgresql/
restart: always

View File

@ -42,5 +42,5 @@
"vitest": "^3.2.4",
"vitest-tsconfig-paths": "^3.4.1"
},
"packageManager": "bun@1.3.3"
"packageManager": "bun@1.3.5"
}