Docker works!

This commit is contained in:
jmueller
2023-12-14 20:23:38 +01:00
parent f118861c05
commit 5969b52c54
2 changed files with 12 additions and 1 deletions

11
docker-compose.yml Normal file
View File

@@ -0,0 +1,11 @@
version: "3.3"
services:
rekruhelper:
image: git.jmueller.eu/jmueller/rekruhelper:latest
container_name: Rekruhelper
environment:
- db_user=
- db_password=
- db_host=
- db_name=
- TOKEN=

View File

@@ -11,7 +11,7 @@ if os.path.exists(configfile):
with open('config.json') as user_file: with open('config.json') as user_file:
config = json.loads(user_file.read()) config = json.loads(user_file.read())
else: else:
config = {"db_user": os.environ["db_user"], "db_password": os.environ["db_password"], "db_host": os.environ["db_host"], "db_pass": os.environ["db_pass"]} config = {"db_user": os.environ["db_user"], "db_password": os.environ["db_password"], "db_host": os.environ["db_host"], "db_name": os.environ["db_name"]}
if os.path.exists(".env"): if os.path.exists(".env"):
load_dotenv() load_dotenv()