diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/.idea/bitmagnet.iml b/.idea/bitmagnet.iml
new file mode 100644
index 0000000..d6ebd48
--- /dev/null
+++ b/.idea/bitmagnet.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..639900d
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..67603a8
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/compose.yml b/compose.yml
new file mode 100644
index 0000000..9a40d5e
--- /dev/null
+++ b/compose.yml
@@ -0,0 +1,48 @@
+services:
+ db:
+ image: postgres:17
+ container_name: Bitmagnet-DB
+ security_opt:
+ - no-new-privileges:true
+ healthcheck:
+ test: ["CMD", "pg_isready", "-q", "-d", "bitmagnet", "-U", "postgres"]
+ timeout: 45s
+ interval: 10s
+ retries: 10
+ volumes:
+ - /volume1/docker/bitmagnet/db:/var/lib/postgresql/data:rw
+ environment:
+ POSTGRES_DB: bitmagnet
+ POSTGRES_USER: postgres
+ POSTGRES_PASSWORD: postgrespass
+ restart: on-failure:5
+
+ bitmagnet:
+ image: ghcr.io/bitmagnet-io/bitmagnet:latest
+ container_name: Bitmagnet
+ security_opt:
+ - no-new-privileges:true
+ healthcheck:
+ test: ["CMD-SHELL", "nc -z 127.0.0.1 3333 || exit 1"]
+ interval: 10s
+ timeout: 5s
+ retries: 3
+ start_period: 90s
+ user: 1026:100
+ environment:
+ POSTGRES_HOST: db
+ POSTGRES_USER: postgres
+ POSTGRES_PASSWORD: postgrespass
+ TMDB_API_KEY: c0e0e96c44aa64810b82c0db6887c2e1
+ volumes:
+ - /volume1/docker/bitmagnet/config:/root/.config/bitmagnet:rw
+ command:
+ - worker
+ - run
+ - --all
+ ports:
+ - 8346:3333
+ depends_on:
+ db:
+ condition: service_healthy
+ restart: on-failure:5
\ No newline at end of file