Add Docker support with Dockerfile and docker-compose.yml

- Introduced a Dockerfile for building the application using a multi-stage build process.
- Added docker-compose.yml to define services for the application and PostgreSQL database.
- Updated README.md with instructions for running the application using Docker and Docker Compose.
This commit is contained in:
Ben Melchior
2025-04-15 20:26:06 +02:00
parent 8d50c1e962
commit a70c80a557
3 changed files with 92 additions and 0 deletions

View File

@@ -79,6 +79,34 @@ All system events are logged with timestamps in the format:
[YYYY-MM-DD HH:MM:SS] Message
```
## Docker Setup
### Prerequisites
- Docker
- Docker Compose
### Running with Docker
1. Make sure you have a `.env` file in the project root with the necessary configuration.
2. Build and start the containers:
```bash
docker-compose up -d
```
3. To view logs:
```bash
docker-compose logs -f
```
4. To stop the application:
```bash
docker-compose down
```
The application will be available at http://localhost:3000.
## License
This project is licensed under the GNU General Public License v3.0 (GPL-3.0). This license ensures that: