docker configuration for logging. use SIGINT as stop signal
This commit is contained in:
parent
de96c3de06
commit
bd22fd55d3
|
@ -10,6 +10,9 @@ RUN pip install pipenv && \
|
|||
rm -r /root/.local/*
|
||||
|
||||
COPY bot.py *.json *.pickle /bot/
|
||||
COPY config config
|
||||
COPY modules modules
|
||||
|
||||
VOLUME /bot/config
|
||||
|
||||
CMD [ "python", "-u", "./bot.py" ]
|
||||
|
|
|
@ -13,6 +13,10 @@ services:
|
|||
- MATRIX_SERVER
|
||||
- JOIN_ON_INVITE
|
||||
- BOT_OWNERS
|
||||
- DEBUG
|
||||
volumes:
|
||||
- ${PWD}/config/:/bot/config
|
||||
- ${PWD}/credentials.json:/bot/credentials.json
|
||||
- ${PWD}/token.pickle:/bot/token.pickle
|
||||
|
||||
stop_signal: SIGINT
|
||||
|
|
Loading…
Reference in New Issue