anyproto / any-sync-tools

Configuration builder for Any-Sync nodes
https://anytype.io
MIT License
16 stars 10 forks source link

Docker based anysync creation failed #17

Open Onefabis opened 5 months ago

Onefabis commented 5 months ago

Have you read a contributing guide?

Current Behavior

I've created stack in Portainer with that code

# Use root/example as user/password credentials
version: '3.1'

services:
  redis:
    image: redis:latest
    command: redis-server
    volumes:
      - mydiskID/apps/data/redis-data/:/var/lib/redis
      - mydiskID/apps/data/redis-config/:/usr/local/etc/redis/redis.conf
    ports:
      - 6379:6379
    networks:
      - redis-network

  redis-commander:
    image: rediscommander/redis-commander:latest
    environment:
      - REDIS_HOSTS=local:redis:6379
      - HTTP_USER=root
      - HTTP_PASSWORD=qwerty
    ports:
      - 8091:8081
    networks:
      - redis-network
    depends_on:
      - redis

  minio1:
    image: minio/minio:RELEASE.2023-11-01T01-57-10Z-cpuv1
    ports:
      - "9002:9002"
      - "9004:9004"
    volumes: 
      - mydiskID/apps/data/minio/:/data/
    command: server --console-address ":9004" /data
    environment:
      - MINIO_ROOT_USER=admin
      - MINIO_ROOT_PASSWORD=password
      - MINIO_PROMETHEUS_AUTH_TYPE=public
    restart: always

  mongo:
    image: mongo:4.4.6
    restart: always
    environment:
      MONGO_INITDB_ROOT_USERNAME: root
      MONGO_INITDB_ROOT_PASSWORD: example
      MONGO_INITDB_DATABASE: init
    volumes: 
      - mydiskID/apps/data/db:/data/db/

  mongo-express:
    image: mongo-express
    restart: always
    ports:
      - 8081:8081
    environment:
      ME_CONFIG_MONGODB_ADMINUSERNAME: root
      ME_CONFIG_MONGODB_ADMINPASSWORD: example
      ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
      ME_CONFIG_BASICAUTH: false

networks:
  redis-network:
    driver: bridge

If I download https://github.com/anyproto/any-sync-tools/releases/download/v0.0.5/any-sync-tools-0.0.5.linux-amd64.tgz and extract it on my server PC, when I run the command: any-sync-network create I give me an error: command not found, however, the file is visible in ls command

Expected Behavior

Creation of "any-sync-*" and "anytype-heart" files on the server PC https://github.com/anyproto/any-sync-tools/tree/main/any-sync-network

Steps To Reproduce

Steps described here: https://tech.anytype.io/how-to/self-hosting, so the code that I wrote with this steps is here on the Portainer stack

Environment

- OS: linux with Proxmox and Openmediavault image
- Version:Virtual Environment 7.4-15

Anything else?

No response

fb929 commented 4 months ago

If I download https://github.com/anyproto/any-sync-tools/releases/download/v0.0.5/any-sync-tools-0.0.5.linux-amd64.tgz and extract it on my server PC, when I run the command: any-sync-network create I give me an error: command not found, however, the file is visible in ls command

You need to add the path to the folder where you extracted any-sync-tools-0.0.5.linux-amd64.tgz to your PATH, or use the installation via the RPM/DEB package.