Skip to content

Commit

Permalink
Added root password to compose
Browse files Browse the repository at this point in the history
  • Loading branch information
LordofAgents committed Oct 2, 2024
1 parent 0926370 commit 703d706
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ WORKDIR /app
ADD requirements.txt .
RUN pip install -r requirements.txt
ADD app.py .
CMD ["python","-u","/app/app.py"]
CMD ["python","-u","/app/app.py"]
5 changes: 3 additions & 2 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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}
Expand Down
1 change: 1 addition & 0 deletions example.env
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 703d706

Please sign in to comment.