This commit is contained in:
Kevin Sträßler 2025-12-09 20:27:35 +01:00
parent ab822a26f9
commit 7917c1c7aa
6 changed files with 54 additions and 11 deletions

8
.idea/.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

12
.idea/TanstackTest.iml Normal file
View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

8
.idea/modules.xml Normal file
View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/TanstackTest.iml" filepath="$PROJECT_DIR$/.idea/TanstackTest.iml" />
</modules>
</component>
</project>

6
.idea/prettier.xml Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PrettierConfiguration">
<option name="myConfigurationMode" value="AUTOMATIC" />
</component>
</project>

6
.idea/vcs.xml Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View file

@ -1,14 +1,17 @@
version: '3.8'
services:
db:
image: postgres:17.0
hostname: ${DB_HOST}
app:
# Stelle sicher, dass hier das Build-Kontext oder Image
# für deinen Node.js-Container korrekt ist (siehe vorherige Antwort)
build:
context: .
dockerfile: Dockerfile
ports:
- "5432:${DB_PORT}"
- "3000:3000"
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_USER=${DB_USER}
- POSTGRES_DB=${DB_NAME}
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata:
# Hier injiziert Coolify den kompletten Datenbank-Link
# Dein Code verwendet diese Variable, um sich zu verbinden
DATABASE_URL: ${DATABASE_URL}
# Entferne alle DB_HOST, DB_USER, etc.