diff --git a/Code/Teil 1/.idea/.gitignore b/Code/Teil 1/.idea/.gitignore new file mode 100644 index 0000000..8bf4d45 --- /dev/null +++ b/Code/Teil 1/.idea/.gitignore @@ -0,0 +1,6 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/Code/Teil 1/.idea/dataSources.xml b/Code/Teil 1/.idea/dataSources.xml new file mode 100644 index 0000000..e48e16d --- /dev/null +++ b/Code/Teil 1/.idea/dataSources.xml @@ -0,0 +1,12 @@ + + + + + postgresql + true + org.postgresql.Driver + jdbc:postgresql://localhost:5432/postgres + $ProjectFileDir$ + + + \ No newline at end of file diff --git a/Code/Teil 1/docker-compose.yaml b/Code/Teil 1/docker-compose.yaml new file mode 100644 index 0000000..150b357 --- /dev/null +++ b/Code/Teil 1/docker-compose.yaml @@ -0,0 +1,17 @@ +services: + postgres: + image: postgres:15 + container_name: postgres_container + restart: unless-stopped + environment: + - POSTGRES_USER=postgres + - POSTGRES_PASSWORD=postgres + - POSTGRES_DB=postgres + - PGDATA=/var/lib/postgresql/data/pgdata + ports: + - "5432:5432" + volumes: + - postgres_data:/var/lib/postgresql/data + +volumes: + postgres_data: \ No newline at end of file