Hello,
Just asking for some help to get apps done.
From the Jellyfin tutorial Plex alternative: Jellyfin installation guide on WD NAS
I get that to make an app work on portainer (let say affine and I would love tailscale), I could use the stack option right ? And are the following good ?
Then I just need everytime to map and creates appropriates folder there, should that work ? It’s from Marius HOsting for synology.
services:
affine:
image: Package affine · GitHub
container_name: AFFINE
healthcheck:
test: timeout 10s bash -c ‘:> /dev/tcp/127.0.0.1/3010’ || exit 1
interval: 10s
timeout: 5s
retries: 3
start_period: 90s
ports:
- 3010:3010
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
affine_migration:
condition: service_completed_successfully
volumes:- /mnt/HD/HD_a2/Nas_Prog/affine/config:/root/.affine/config:rw
- /mnt/HD/HD_a2/Nas_Prog/affine/storage:/root/.affine/storage:rw
restart: on-failure:5
environment:- AFFINE_REVISION=stable
- AFFINE_INDEXER_ENABLED=false
- PORT=3010
- AFFINE_SERVER_HTTPS=false
- AFFINE_SERVER_EXTERNAL_URL=http://NASLOCAIP
- MAILER_HOST=smtp.gmail.com
- MAILER_PORT=465
- MAILER_USER=Your-own-gmail-address
- MAILER_PASSWORD=Your-own-app-password
- MAILER_SENDER=Affine
- REDIS_SERVER_HOST=redis
- DATABASE_URL=postgres://affineuser:affinepass@postgres:5432/affine?sslmode=disable
- NODE_ENV=production
- AFFINE_ADMIN_EMAIL=yourown@email
- AFFINE_ADMIN_PASSWORD=yourownPW
- DB_DATA_LOCATION=~/.affine/self-host/postgres/pgdata
- UPLOAD_LOCATION=~/.affine/self-host/storage
- CONFIG_LOCATION=~/.affine/self-host/config
affine_migration:
image: Package affine · GitHub
container_name: Affine_MIGRATION
volumes:
- /mnt/HD/HD_a2/Nas_Prog/affine/config:/root/.affine/config:rw
- /mnt/HD/HD_a2/Nas_Prog/affine/storage:/root/.affine/storage:rw
command: [‘sh’, ‘-c’, ‘node ./scripts/self-host-predeploy.js’]
environment:- REDIS_SERVER_HOST=redis
- DATABASE_URL=postgres://affineuser:affinepass@postgres:5432/affine?sslmode=disable
- AFFINE_INDEXER_ENABLED=false
- DB_DATA_LOCATION=~/.affine/self-host/postgres/pgdata
- UPLOAD_LOCATION=~/.affine/self-host/storage
- CONFIG_LOCATION=~/.affine/self-host/config
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthyredis:
image: redis:latest
container_name: AFFINE-REDIS
restart: on-failure:5
volumes:
-/mnt/HD/HD_a2/Nas_Prog/affine/redis:/data:rw
healthcheck:
test: [‘CMD’, ‘redis-cli’, ‘–raw’, ‘incr’, ‘ping’]
interval: 10s
timeout: 5s
retries: 5postgres:
image: pgvector/pgvector:pg17
container_name: AFFINE-DB
restart: on-failure:5
volumes:
- /mnt/HD/HD_a2/Nas_Prog/affine/db:/var/lib/postgresql/data:rw
healthcheck:
test: [“CMD”, “pg_isready”, “-q”, “-d”, “affine”, “-U”, “affineuser”]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: affineuser
POSTGRES_PASSWORD: affinepass
POSTGRES_DB: affine
POSTGRES_INITDB_ARGS: ‘–data-checksums’
Thank you for helping !