forked from sh-edraft.de/sh_discord_bot
Fixed docker stuff to work
This commit is contained in:
parent
676d718fc2
commit
1a8c74d9e0
@ -1,11 +1,17 @@
|
|||||||
version: "3.9"
|
version: "3.9"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
kdb_prod_1:
|
||||||
|
kdb_staging_1:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
kdb_prod_1:
|
kdb_prod_1:
|
||||||
image: kdb
|
image: kdb
|
||||||
container_name: kdb_1
|
container_name: kdb_prod_1
|
||||||
depends_on:
|
depends_on:
|
||||||
- kdb_db_1
|
- kdb_db_1
|
||||||
|
volumes:
|
||||||
|
- kdb_prod_1:/app
|
||||||
environment:
|
environment:
|
||||||
KDB_ENVIRONMENT: "production"
|
KDB_ENVIRONMENT: "production"
|
||||||
KDB_TOKEN: ""
|
KDB_TOKEN: ""
|
||||||
@ -14,9 +20,11 @@ services:
|
|||||||
|
|
||||||
kdb_staging_1:
|
kdb_staging_1:
|
||||||
image: kdb
|
image: kdb
|
||||||
container_name: kdb_1
|
container_name: kdb_staging_1
|
||||||
depends_on:
|
depends_on:
|
||||||
- kdb_db_1
|
- kdb_db_1
|
||||||
|
volumes:
|
||||||
|
- kdb_staging_1:/app
|
||||||
environment:
|
environment:
|
||||||
KDB_ENVIRONMENT: "staging"
|
KDB_ENVIRONMENT: "staging"
|
||||||
KDB_TOKEN: ""
|
KDB_TOKEN: ""
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
FROM python:3.10
|
FROM python:3.10.7-buster
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./dist/bot/build/ .
|
COPY ./dist/bot/build/ .
|
||||||
@ -8,6 +8,8 @@ RUN pip install cpl-core --extra-index-url https://pip.sh-edraft.de
|
|||||||
RUN pip install cpl-discord --extra-index-url https://pip.sh-edraft.de
|
RUN pip install cpl-discord --extra-index-url https://pip.sh-edraft.de
|
||||||
RUN pip install cpl-query --extra-index-url https://pip.sh-edraft.de
|
RUN pip install cpl-query --extra-index-url https://pip.sh-edraft.de
|
||||||
RUN pip install cpl-translation --extra-index-url https://pip.sh-edraft.de
|
RUN pip install cpl-translation --extra-index-url https://pip.sh-edraft.de
|
||||||
|
RUN apt-get update -y
|
||||||
|
RUN apt-get install nano -y
|
||||||
|
|
||||||
ENV KDB_TOKEN=""
|
ENV KDB_TOKEN=""
|
||||||
ENV KDB_PREFIX="!kdb "
|
ENV KDB_PREFIX="!kdb "
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"DatabaseSettings": {
|
"DatabaseSettings": {
|
||||||
"Host": "localhost",
|
"Host": "37.120.162.78",
|
||||||
"User": "kd_kdb",
|
"User": "kd_kdb",
|
||||||
"Password": "a2Rfa2Ri",
|
"Password": "a2Rfa2Ri",
|
||||||
"Database": "kd_kdb",
|
"Database": "kd_kdb",
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"DatabaseSettings": {
|
"DatabaseSettings": {
|
||||||
"Host": "localhost",
|
"Host": "37.120.162.78",
|
||||||
"User": "kd_kdb",
|
"User": "kd_kdb",
|
||||||
"Password": "a2Rfa2Ri",
|
"Password": "a2Rfa2Ri",
|
||||||
"Database": "kd_kdb",
|
"Database": "kd_kdb",
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
"""
|
||||||
|
bot Keksdose bot
|
||||||
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Discord bot for the Keksdose discord Server
|
||||||
|
|
||||||
|
:copyright: (c) 2022 sh-edraft.de
|
||||||
|
:license: MIT, see LICENSE for more details.
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
__title__ = 'bot_core.helper'
|
||||||
|
__author__ = 'Sven Heidemann'
|
||||||
|
__license__ = 'MIT'
|
||||||
|
__copyright__ = 'Copyright (c) 2022 sh-edraft.de'
|
||||||
|
__version__ = '0.2.0'
|
||||||
|
|
||||||
|
from collections import namedtuple
|
||||||
|
|
||||||
|
|
||||||
|
# imports:
|
||||||
|
|
||||||
|
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
|
||||||
|
version_info = VersionInfo(major='0', minor='2', micro='0')
|
@ -1 +1,26 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
"""
|
||||||
|
bot Keksdose bot
|
||||||
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Discord bot for the Keksdose discord Server
|
||||||
|
|
||||||
|
:copyright: (c) 2022 sh-edraft.de
|
||||||
|
:license: MIT, see LICENSE for more details.
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
__title__ = 'bot_core.logging'
|
||||||
|
__author__ = 'Sven Heidemann'
|
||||||
|
__license__ = 'MIT'
|
||||||
|
__copyright__ = 'Copyright (c) 2022 sh-edraft.de'
|
||||||
|
__version__ = '0.2.0'
|
||||||
|
|
||||||
|
from collections import namedtuple
|
||||||
|
|
||||||
|
|
||||||
# imports
|
# imports
|
||||||
|
|
||||||
|
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
|
||||||
|
version_info = VersionInfo(major='0', minor='2', micro='0')
|
||||||
|
Loading…
Reference in New Issue
Block a user