• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Off Topic Self-hosting & Homelabs Docker-compose + Nextcloud boost?

     
    • 0 Vote(s) - 0 Average

    Docker-compose + Nextcloud boost?

    Pulled my hair out yesterday...
    bitmap
    Offline

    Community Moderator

    Posts: 917
    Threads: 9
    Joined: 2023 Jul
    Reputation: 30
    #4
    2023-09-05, 06:05 PM
    Here's my actual compose file. Keep in mind it's extended out to a main compose file, where "depends_on" must live, so those are properly implemented for the main app and cron containers.

    Code:
    version: '3'

    services:
      nxcdb:
        image: postgres:alpine
        container_name: nxcdb
        restart: unless-stopped
        volumes:
          - "${USERDIR}/docker/nextcloud/db:/var/lib/postgresql/data:Z"
        env_file:
          - .env

      nxcr:
        image: redis:alpine
        container_name: nxcr
        restart: unless-stopped
        env_file:
          - .env

      nextcloud:
        image: nextcloud:production-apache
        container_name: nextcloud
        restart: unless-stopped
        volumes:
          - "${USERDIR}/docker/nextcloud/main:/var/www/html:z"
          - "${USERDIR}/docker/nextcloud/apps:/var/www/html/custom_apps"
          - "${USERDIR}/docker/nextcloud/config:/var/www/html/config"
          - "${BXUP}/critical/nextcloud:/var/www/data"
          - "${USERDIR}/docker/nextcloud/themes:/var/www/html/themes"
        ports:
          - "${SERVER_IP}:8880:80"
          #- 4443:443
        environment:
          POSTGRES_HOST: nxcdb
          REDIS_HOST: nxcr
          NEXTCLOUD_TRUSTED_DOMAINS: [my.domain] [local_ip]
        env_file:
          - .env

      ncron:
        image: nextcloud:production-apache
        container_name: ncron
        restart: unless-stopped
        volumes:
          - "${USERDIR}/docker/nextcloud/main:/var/www/html:z"
          - "${USERDIR}/docker/nextcloud/apps:/var/www/html/custom_apps"
          - "${USERDIR}/docker/nextcloud/config:/var/www/html/config"
          - "${BXUP}/critical/nextcloud:/var/www/data"
          - "${USERDIR}/docker/nextcloud/themes:/var/www/html/themes"
        entrypoint: /cron.sh
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Docker-compose + Nextcloud boost? - by bitmap - 2023-08-30, 07:10 PM
    RE: Docker-compose + Nextcloud boost? - by cewert - 2023-09-01, 11:22 PM
    RE: Docker-compose + Nextcloud boost? - by bitmap - 2023-09-01, 11:38 PM
    RE: Docker-compose + Nextcloud boost? - by bitmap - 2023-09-05, 06:05 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode