diff --git a/swarm/manyfold.yaml b/swarm/manyfold.yaml index ec6e397..8fdf7c1 100644 --- a/swarm/manyfold.yaml +++ b/swarm/manyfold.yaml @@ -1,104 +1,30 @@ - services: manyfold: - image: ghcr.io/manyfold3d/manyfold:latest + image: ghcr.io/manyfold3d/manyfold-solo:latest ports: - 3214:3214 volumes: + # Uncomment to add a volume where a database file should be created. + # Don't change the part after the colon, it needs to be at /config + - /DockerVol/manyfold/config:/config # Uncomment to add a filesystem volume for your model library (or multiple if # you want multiple libraries), in the form :. # The local path could be a folder that already contains models, in which case Manyfold # will scan and import them, or it could be empty. # The container path can be anything; you will need to enter it in the "new library" form. - # - /local/path/to/your/models:/models + - /DockerVol/manyfold/models:/models environment: - PUID: "1964" # The ID of the user the app will run as - PGID: "1964" # The ID of the group the app will run as - SECRET_KEY_BASE: OD0CLgELUEWGoZ8IUnduGbxhyhh4vgjMBxBAjyopNOkATWIEWSYeWRDdfY6ulX2Fj7zuUp9dpgzjoFatNviLD8E5Cv2815eDrZxH9gNb52Taur0LzqBPk25yLCvsnjXK - REDIS_URL: redis://redis:6379/1 - - # Database connection details; we recommend using a separate PostgreSQL - # server for best performance - DATABASE_ADAPTER: postgresql - DATABASE_HOST: postgres - DATABASE_PORT: 5432 - DATABASE_USER: manyfold - DATABASE_PASSWORD: F@lcon13 - DATABASE_NAME: manyfold - - # "mysql2" is also available, and you can specify all details in a - # single DATABASE_URL variable if you prefer: - # DATABASE_URL: {adapter}://{user}:{password}@{host}/{name} - - # You can also use the "sqlite3" adapter if you don't want to run a separate - # database server. If you do, specify a path to your database file in DATABASE_NAME, - # and make sure it's on a persistent volume! Host, user and password aren't required. - # DATABASE_URL: sqlite3:/config/manyfold.sqlite3 - + SECRET_KEY_BASE: adfagsfgasglafbj[r8gqr0jifspfjbi0t8uhjtrwbq]-bjkq-]b9gbirthhpojh + PUID: 1000 + PGID: 1000 # For details of other optional environment variables, including features such - # as multiuser mode, visit https://manyfold.app/sysadmin/configuration.html - - - networks: - - manyfold - - netgrimoire - + # as multiuser mode, visit https://manyfold.app/sysadmin/configuration.html + restart: unless-stopped + # Optional, but recommended for better security + # security_opt: + # - no-new-privileges:true deploy: placement: constraints: - - node.platform.arch != arm - - node.platform.arch != aarch64 - labels: - homepage.group: "PNCHarris Apps" - homepage.name: ManyFold - homepage.icon: manyfold.png - homepage.href: https://manyfold.netgrimoire.com - homepage.description: App service - diun.enable: "true" - monitor.name: manyfold - monitor.url: https://manyfold.netgrimoire.com + - node.hostname == znas - restart_policy: - condition: any - delay: 5s - max_attempts: 3 - window: 120s - - - postgres: - image: postgres:15 - volumes: - - db_data:/var/lib/postgresql/data - environment: - POSTGRES_USER: manyfold - POSTGRES_PASSWORD: F@lcon13 - restart: on-failure - networks: - - manyfold - - deploy: - labels: - gremlin.caddy.skip: "true" - gremlin.homepage.skip: "true" - gremlin.monitor.skip: "true" - diun.enable: "true" - - redis: - image: redis:7 - restart: on-failure - networks: - - manyfold - - deploy: - labels: - gremlin.caddy.skip: "true" - gremlin.homepage.skip: "true" - gremlin.monitor.skip: "true" - diun.enable: "true" - -networks: - netgrimoire: - external: true - - -