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:
28
README.md
28
README.md
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user