Skip to content

Commit fe66e13

Browse files
docs: add README.md for all 3 database services
1 parent c217ae4 commit fe66e13

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

database/chatdb/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Meet@Mensa Chat Database Service
2+
3+
A mysql database for managing chat information
4+
5+
## Local Deployment with Docker
6+
```
7+
# Build and tag the Docker image
8+
docker build -t chatdb .
9+
10+
# Run the Docker container forwarding port 3306 to 3306 and setting the root password via
11+
docker run --name chatdb-service -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 chatdb .
12+
13+
# List running containers (if needed)
14+
docker ps
15+
16+
# Stop the container
17+
docker stop chatdb-service
18+
19+
# Remove the container
20+
docker remove chatdb-service
21+
```
22+
23+
The mysql database will be available on `http://127.0.0.1:3306` with user: `root` and password: `<MYSQL_ROOT_PASSWORD>`.

database/matchdb/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Meet@Mensa Match Database Service
2+
3+
A mysql database for managing matching information
4+
5+
## Local Deployment with Docker
6+
```
7+
# Build and tag the Docker image
8+
docker build -t matchdb .
9+
10+
# Run the Docker container forwarding port 3306 to 3307 and setting the root password via
11+
docker run --name matchdb-service -e MYSQL_ROOT_PASSWORD=root -p 3306:3307 matchdb .
12+
13+
# List running containers (if needed)
14+
docker ps
15+
16+
# Stop the container
17+
docker stop matchdb-service
18+
19+
# Remove the container
20+
docker remove matchdb-service
21+
```
22+
23+
The mysql database will be available on `http://127.0.0.1:3307` with user: `root` and password: `<MYSQL_ROOT_PASSWORD>`.

database/userdb/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Meet@Mensa User Database Service
2+
3+
A mysql database for managing user information
4+
5+
## Local Deployment with Docker
6+
```
7+
# Build and tag the Docker image
8+
docker build -t userdb .
9+
10+
# Run the Docker container forwarding port 3306 to 3308 and setting the root password via
11+
docker run --name userdb-service -e MYSQL_ROOT_PASSWORD=root -p 3306:3308 userdb .
12+
13+
# List running containers (if needed)
14+
docker ps
15+
16+
# Stop the container
17+
docker stop userdb-service
18+
19+
# Remove the container
20+
docker remove userdb-service
21+
```
22+
23+
The mysql database will be available on `http://127.0.0.1:3308` with user: `root` and password: `<MYSQL_ROOT_PASSWORD>`.

0 commit comments

Comments
 (0)