diff --git a/.gitignore b/.gitignore
index 9bdd3ba6badfe11cbbc822a229f9e4eed0a8a930..dbf41b212a194dc493d6f7a1883f0fa8ea1c94a7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -113,3 +113,4 @@ backend-src/src/main/resources/static/
front-src/*
admin/build
/backend-src/docker.iml
+/backend-src/src/main/resources/application-local.yaml
diff --git a/backend-src/.gitignore b/backend-src/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..87159db00b24da46207ba75497b664fbecb199c8
--- /dev/null
+++ b/backend-src/.gitignore
@@ -0,0 +1,104 @@
+# Created by .ignore support plugin (hsz.mobi)
+### macOS template
+# General
+.DS_Store
+.AppleDouble
+.LSOverride
+
+# Icon must end with two \r
+
+
+# Thumbnails
+._*
+
+# Files that might appear in the root of a volume
+.DocumentRevisions-V100
+.fseventsd
+.Spotlight-V100
+.TemporaryItems
+.Trashes
+.VolumeIcon.icns
+.com.apple.timemachine.donotpresent
+
+# Directories potentially created on remote AFP share
+.AppleDB
+.AppleDesktop
+Network Trash Folder
+Temporary Items
+.apdisk
+
+### JetBrains template
+# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
+# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
+
+# User-specific stuff
+.idea/**/workspace.xml
+.idea/**/tasks.xml
+.idea/**/usage.statistics.xml
+.idea/**/dictionaries
+.idea/**/shelf
+
+# Generated files
+.idea/**/contentModel.xml
+
+# Sensitive or high-churn files
+.idea/**/dataSources/
+.idea/**/dataSources.ids
+.idea/**/dataSources.local.xml
+.idea/**/sqlDataSources.xml
+.idea/**/dynamic.xml
+.idea/**/uiDesigner.xml
+.idea/**/dbnavigator.xml
+
+# Gradle
+.idea/**/gradle.xml
+.idea/**/libraries
+
+# Gradle and Maven with auto-import
+# When using Gradle or Maven with auto-import, you should exclude module files,
+# since they will be recreated, and may cause churn. Uncomment if using
+# auto-import.
+# .idea/artifacts
+# .idea/compiler.xml
+# .idea/jarRepositories.xml
+# .idea/modules.xml
+# .idea/*.iml
+# .idea/modules
+# *.iml
+# *.ipr
+
+# CMake
+cmake-build-*/
+
+# Mongo Explorer plugin
+.idea/**/mongoSettings.xml
+
+# File-based project format
+*.iws
+
+# IntelliJ
+out/
+
+# mpeltonen/sbt-idea plugin
+.idea_modules/
+
+# JIRA plugin
+atlassian-ide-plugin.xml
+
+# Cursive Clojure plugin
+.idea/replstate.xml
+
+# Crashlytics plugin (for Android Studio and IntelliJ)
+com_crashlytics_export_strings.xml
+crashlytics.properties
+crashlytics-build.properties
+fabric.properties
+
+# Editor-based Rest Client
+.idea/httpRequests
+
+# Android studio 3.1+ serialized cache file
+.idea/caches/build_file_checksums.ser
+
+**/.idea
+**/target
diff --git a/backend-src/.idea/workspace.xml b/backend-src/.idea/workspace.xml
deleted file mode 100644
index fde92d4050a397c2d5193e3aea1672a85f9e8aee..0000000000000000000000000000000000000000
--- a/backend-src/.idea/workspace.xml
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1638631623644
-
-
- 1638631623644
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- file://$PROJECT_DIR$/src/main/java/com/example/simpledocker/ws/ContainerTerminalWebSocket.java
- 100
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend-src/pom.xml b/backend-src/pom.xml
index c005fde7d871876fe62b0565c0f4ec8c9248f7cb..ecf99202222db749d12818e03696f3c5f4bbfb93 100644
--- a/backend-src/pom.xml
+++ b/backend-src/pom.xml
@@ -160,6 +160,30 @@
+
+
+ local
+
+ local
+
+
+ true
+
+
+
+ dev
+
+ dev
+
+
+
+ prod
+
+ prod
+
+
+
+
diff --git a/backend-src/src/main/resources/application.yaml b/backend-src/src/main/resources/application.yaml
index caf4dfcd647483863672818bd860d4ec4767e8de..d769067c7c7aa8bcf5af38785ad091104426af2f 100644
--- a/backend-src/src/main/resources/application.yaml
+++ b/backend-src/src/main/resources/application.yaml
@@ -1,3 +1,3 @@
spring:
profiles:
- active: dev
\ No newline at end of file
+ active: @profile.active@
\ No newline at end of file