dockerize

This commit was merged in pull request #13.
This commit is contained in:
David Rodenkirchen
2025-03-23 17:20:14 +01:00
parent ee6f35b771
commit 26994d4536
5 changed files with 66 additions and 1 deletions
+14
View File
@@ -29,3 +29,17 @@ Use `pip install -r requirements.txt` to install the requirements. The usage of
### Step 4: Running the application
Run the application by executing the file `EzLanManager.py` found at `src/ez_lan_manager`. Check the STDOUT for information regarding the port on which the application is now served.
## Docker Deployment
To get the docker compose setup running, you need to manually complete the following steps:
1. Create a valid `config.toml` in the project root, so it gets copied over into the container.
2. Create the database user:
```sql
CREATE USER 'ez_lan_manager'@'%' IDENTIFIED BY 'PASSWORD';
GRANT ALL PRIVILEGES ON ez_lan_manager.* TO 'ez_lan_manager'@'%';
FLUSH PRIVILEGES;
```
3. Make sure to **NOT** use the default passwords!
4. Apply the `create_database.sql` when starting the MariaDB container for the first time.