Sources of Telegram bot for cryptopotato chat. https://t.me/devpotato_bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

56 lines
1.1 KiB

---
version: "2.4"
x-first-run:
# For the first run replace migrate_db with init_db
init_db:
image: "sevoid/cryptopotato-bot:latest"
restart: "no"
command: [ "init_db" ]
environment:
- DB_URL=sqlite:////data/db.sqlite
- ALEMBIC_CFG=/opt/bot/alembic.ini
volumes:
- data:/data
networks:
- cryptopotato
services:
migrate_db:
image: "sevoid/cryptopotato-bot:latest"
restart: "no"
command: [ "migrate_db" ]
environment:
- DB_URL=sqlite:////data/db.sqlite
volumes:
- data:/data
networks:
- cryptopotato
telegram_bot:
image: "sevoid/cryptopotato-bot:latest"
restart: always
environment:
- WAIT_BEFORE_START=5
- DB_URL=sqlite:////data/db.sqlite
- BOT_TOKEN=
- DEVELOPER_IDS=
- DAILY_TITLES_JOB_ENABLED=
- DAILY_TITLES_JOB_TIME=
- BOT_TIMEZONE=
volumes:
- data:/data
networks:
- cryptopotato
depends_on:
- migrate_db
volumes:
data:
name: data
driver: local
networks:
cryptopotato:
name: cryptopotato