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/*
|
rm -r /root/.local/*
|
||||||
|
|
||||||
COPY bot.py *.json *.pickle /bot/
|
COPY bot.py *.json *.pickle /bot/
|
||||||
|
COPY config config
|
||||||
COPY modules modules
|
COPY modules modules
|
||||||
|
|
||||||
|
VOLUME /bot/config
|
||||||
|
|
||||||
CMD [ "python", "-u", "./bot.py" ]
|
CMD [ "python", "-u", "./bot.py" ]
|
||||||
|
|
|
@ -13,6 +13,10 @@ services:
|
||||||
- MATRIX_SERVER
|
- MATRIX_SERVER
|
||||||
- JOIN_ON_INVITE
|
- JOIN_ON_INVITE
|
||||||
- BOT_OWNERS
|
- BOT_OWNERS
|
||||||
|
- DEBUG
|
||||||
volumes:
|
volumes:
|
||||||
|
- ${PWD}/config/:/bot/config
|
||||||
- ${PWD}/credentials.json:/bot/credentials.json
|
- ${PWD}/credentials.json:/bot/credentials.json
|
||||||
- ${PWD}/token.pickle:/bot/token.pickle
|
- ${PWD}/token.pickle:/bot/token.pickle
|
||||||
|
|
||||||
|
stop_signal: SIGINT
|
||||||
|
|
Loading…
Reference in New Issue