First initial version

This commit is contained in:
2024-11-16 15:01:43 +01:00
parent 30f87b569b
commit 353304b663
6 changed files with 80 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
+8
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/bitmagnet.iml" filepath="$PROJECT_DIR$/.idea/bitmagnet.iml" />
</modules>
</component>
</project>
Generated
+6
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>
+48
View File
@@ -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