48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
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: always
|
|
|
|
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: always |