-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP: backend issue
- Loading branch information
Showing
13 changed files
with
71 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Database connection - App | ||
DB_DATABASE=healthnestdb | ||
DB_HOST=healthnest-db | ||
DB_PASSWORD=hna123 | ||
DB_USER=healthnest | ||
|
||
# Database password | ||
MYSQL_DATABASE=healthnestdb | ||
MYSQL_PASSWORD=hna123 | ||
MYSQL_ROOT_PASSWORD=root123 | ||
MYSQL_USER=healthnest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# Use the official MySQL 5.7 image as the base image | ||
FROM mysql:8.4.0 | ||
|
||
# Set environment variables | ||
ENV MYSQL_ROOT_PASSWORD example_password | ||
ENV MYSQL_DATABASE test | ||
ENV MYSQL_USER example_user | ||
ENV MYSQL_PASSWORD example_password | ||
# Copy custom configuration file to the container (optional) | ||
# COPY ./my-custom.cnf /etc/mysql/conf.d/ | ||
COPY tables.sql /docker-entrypoint-initdb.d | ||
|
||
# Copy initialization scripts (if any) | ||
COPY . /docker-entrypoint-initdb.d | ||
# Expose the default MySQL port | ||
EXPOSE 3306 | ||
|
||
# Command to run the MySQL server | ||
CMD ["mysqld"] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
|
||
export const BASE_URL = "http://localhost:8081"; | ||
export const BASE_URL = "http://healthnest-backend:8081"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
cd backend | ||
docker build -t backend . | ||
docker tag backend:latest enblitztechnologies/healthnest:backend | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
cd database | ||
docker build -t db . | ||
docker tag db:latest enblitztechnologies/healthnest:mysql | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
cd frontend | ||
docker build -t frontend . | ||
docker tag frontend:latest enblitztechnologies/healthnest:frontend | ||
cd .. |