diff --git a/docker-compose.yaml b/docker-compose.yaml index 0432d1f..7bbe575 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,7 +4,7 @@ services: bot: build: . environment: - - SQLITE_DB_FILE_PATH=${SQLITE_DB_FILE_PATH} + - SQLITE_DB_FILE_PATH=/database/db.sqlite - TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN} - DEVELOPER_CHAT_ID=${DEVELOPER_CHAT_ID} volumes: @@ -12,8 +12,8 @@ services: entrypoint: ["/bin/sh", "-c"] command: - | - python -m sqlite3 ${SQLITE_DB_FILE_PATH} < src/sql/init.sql - python src/__main__.py + python -m sqlite3 ${SQLITE_DB_FILE_PATH} < src/sql/init.sql; + python src/__main__.py; restart: always sqlitebrowser: