Your reality, sir, is lies and balderdash… and I’m delighted to say that I have no grasp of it whatsoever!

  • Baron Munchausen
  • 0 Posts
  • 4 Comments
Joined 3 years ago
cake
Cake day: June 12th, 2023

help-circle

  • Former English teacher here. My self-hosting origin is that I had 20 years or so of teaching materials I’d collected in OneNote over that time and simply wanted to have offline copies so that I could feel that if ever something went wrong with Microsoft like getting permanently locked out of my account, then I had a means of restoring everything. Microsoft makes it practically impossible to export to a working backup.

    After spending a LONG time trying everything to get back ownership of my materials, I understood the need to move my digital stuff away from big tech. I bought a Synology NAS, learned how to use Docker and then took more steps. About the same time I started using Fediverse apps and learned a great deal from the discussions and links there. My greatest “learn” has been keeping notes in plaintext files (and not getting seduced by nice shiny new apps that are actually horrors that want lure you into a future subscription).


  • Thanks. I took another look at your documentation and decided to re-install everything. You’re right, I’d used the simple “test” compose script from your site. After a little trial and error, I got everything working properly with this:

    services:
      redis:
        image: redis:7-alpine
        container_name: journiv-redis
        restart: unless-stopped
        volumes:
          - /mnt/dietpi_userdata/docker-data/journiv/redis-data:/data
        command: redis-server --appendonly yes
    
      journiv:
        image: swalabtech/journiv-app:latest
        container_name: journiv
        ports:
          - "8111:8000"
        environment:
          - SECRET_KEY=XXX
          - DOMAIN_NAME=XXX
          - CELERY_BROKER_URL=redis://redis:6379/0
          - CELERY_RESULT_BACKEND=redis://redis:6379/0
          - REDIS_URL=redis://redis:6379/0
        volumes:
          - /mnt/dietpi_userdata/docker-data/journiv/data:/data
        restart: unless-stopped
        depends_on:
          - redis
    
      celery-worker:
        image: swalabtech/journiv-app:latest
        container_name: journiv-celery-worker
        entrypoint: []
        command: ["celery", "-A", "app.core.celery_app", "worker", "--loglevel=info"]
        environment:
          - SECRET_KEY=XXX
          - DOMAIN_NAME=XXX
          - CELERY_BROKER_URL=redis://redis:6379/0
          - CELERY_RESULT_BACKEND=redis://redis:6379/0
          - REDIS_URL=redis://redis:6379/0
        volumes:
          - /mnt/dietpi_userdata/docker-data/journiv/data:/data
        restart: unless-stopped
        depends_on:
          - redis
          - journiv
    

    Exports are working!