diff --git a/Dockerfile b/Dockerfile index 3cd1722..5e487e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,4 +4,4 @@ WORKDIR /app ADD requirements.txt . RUN pip install -r requirements.txt ADD app.py . -CMD ["python","-u","/app/app.py"] \ No newline at end of file +CMD ["python","-u","/app/app.py"] diff --git a/compose.yml b/compose.yml index 2f01e66..3151bc9 100644 --- a/compose.yml +++ b/compose.yml @@ -1,6 +1,6 @@ services: hall-ban-enforcer: - image: ghcr.io/hackletloose/hall-banenforce:main + image: ghcr.io/hackletloose/hall-banenforce:latest container_name: hall-ban-enforcer restart: unless-stopped env_file: @@ -10,10 +10,11 @@ services: restart: true condition: service_healthy db: - container_name: db + container_name: ban-enforcer-db image: mariadb:lts restart: unless-stopped environment: + MARIADB_ROOT_PASSWORD: ${DB_Root_Password} MYSQL_DATABASE: ${DB_Database} MYSQL_USER: ${DB_User} MYSQL_PASSWORD: ${DB_Password} diff --git a/example.env b/example.env index d4d407d..d82e599 100644 --- a/example.env +++ b/example.env @@ -1,5 +1,6 @@ DB_User="ban_enforcer" DB_Password="ChangeMe" +DB_Root_Password="ChangeMe" DB_Host="localhost" DB_Port= 3306 DB_Database="ban_enforcer"