Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flower problem docker-compose #48

Closed
Bartixxx32 opened this issue Feb 7, 2022 · 2 comments
Closed

Flower problem docker-compose #48

Bartixxx32 opened this issue Feb 7, 2022 · 2 comments

Comments

@Bartixxx32
Copy link
Contributor

Hello im trying to setup bot using dockercompose, as i read README i dont want vip system then i commented out mysql and redis from the compose file:
as shown below

version: '3.1'

services:
  socat:
    image: jmb12686/socat
    restart: always
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    entrypoint: [ "socat", "tcp-listen:2375,fork,reuseaddr","unix-connect:/var/run/docker.sock" ]

  #redis:
    #image: redis:alpine
    #restart: always
    #logging:
    #  driver: none
    #ports:
    #  - "6379:6379"

  #mysql:
    #image: mariadb
    #restart: always
    #volumes:
    #  - ./db_data:/var/lib/mysql
    #environment:
    #  MYSQL_ROOT_PASSWORD: 'root'
    #logging:
    #  driver: none
    #ports:
    #  - "3306:3306"

  ytdl:
    image: bennythink/ytdlbot
    env_file:
      - env/ytdl.env
    restart: always
    depends_on:
      - socat
    volumes:
      - ./data/instagram.com_cookies.txt:/ytdlbot/ytdlbot/instagram.com_cookies.txt
      - ./data/vnstat/:/var/lib/vnstat/

  flower:
    image: bennythink/ytdlbot
    env_file:
      - env/ytdl.env
    restart: on-failure
    command: [ "/usr/local/bin/celery",
               "-A", "flower_tasks", "flower",
               "--basic_auth=benny:123456",
               "--address=0.0.0.0", "--persistent","--purge_offline_workers=3600" ]
    volumes:
      - ./data/flower:/ytdlbot/ytdlbot/flower
    ports:
      - "5555:5555"

next i made env file

TOKEN=515*************Ibc
APP_ID=1*****2
APP_HASH=a38**********3713c
OWNER=Bartixxx

thats my config, i also tried step 3.2.2
i have go to ./data/ whih is /home/pi/ytbot/data
i did

import dbm;dbm.open("flower","n");exit()

in python console, flower.db file was created

but still i have errors

Some pics:

image
image
image

@BennyThink
Copy link
Member

You can comment out flower as well. Flower is intended to used with celery and I bet you don't need it.

@Bartixxx32
Copy link
Contributor Author

Oh, thanks for fast reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants