Update docker-compose file to run src.main as package.
src.main will be run as python package, but before as separated script.
This commit is contained in:
+2
-1
@@ -3,10 +3,11 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
bot:
|
bot:
|
||||||
build: .
|
build: .
|
||||||
|
container_name: dots_matrix_bot
|
||||||
volumes:
|
volumes:
|
||||||
- '.:/code'
|
- '.:/code'
|
||||||
- './crypto_store/:/code/crypto_store/'
|
- './crypto_store/:/code/crypto_store/'
|
||||||
- './session.txt:/code/session.txt'
|
- './session.txt:/code/session.txt'
|
||||||
command: 'python src/main.py'
|
command: 'python -m src.main -c'
|
||||||
env_file: '.env'
|
env_file: '.env'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user