docker configuration for logging. use SIGINT as stop signal

This commit is contained in:
Frank Becker 2020-02-09 11:39:15 +01:00
parent d8ba2e7662
commit f18f1a0299
2 changed files with 7 additions and 0 deletions

View File

@ -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" ]

View File

@ -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