Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #231 from wrth1337/230-refactorn-des-docker-compos…
Browse files Browse the repository at this point in the history
…e-setups-für-die-abgabe

#230 change the database connection from localhost to docker DNS name
  • Loading branch information
wrth1337 authored Mar 17, 2024
2 parents 75468ac + b1e3d2f commit 1d579b8
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion backend/routes/ad.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const limiter = rateLimit({
router.use(limiter);

const pool = mariadb.createPool({
host: '0.0.0.0',
host: 'database',
port: '3306',
user: 'root',
password: 'admin',
Expand Down
2 changes: 1 addition & 1 deletion backend/routes/booking.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const limiter = rateLimit({
router.use(limiter);

const pool = mariadb.createPool({
host: '0.0.0.0',
host: 'database',
port: '3306',
user: 'root',
password: 'admin',
Expand Down
2 changes: 1 addition & 1 deletion backend/routes/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const limiter = rateLimit({
router.use(limiter);

const pool = mariadb.createPool({
host: '0.0.0.0',
host: 'database',
port: '3306',
user: 'root',
password: 'admin',
Expand Down
2 changes: 1 addition & 1 deletion backend/routes/coins.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const limiter = rateLimit({
router.use(limiter);

const pool = mariadb.createPool({
host: '0.0.0.0',
host: 'database',
port: '3306',
user: 'root',
password: 'admin',
Expand Down
2 changes: 1 addition & 1 deletion backend/routes/offer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const limiter = rateLimit({
router.use(limiter);

const pool = mariadb.createPool({
host: '0.0.0.0',
host: 'database',
port: '3306',
user: 'root',
password: 'admin',
Expand Down
2 changes: 1 addition & 1 deletion backend/routes/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const limiter = rateLimit({
router.use(limiter);

const pool = mariadb.createPool({
host: '0.0.0.0',
host: 'database',
port: '3306',
user: 'root',
password: 'admin',
Expand Down
2 changes: 1 addition & 1 deletion backend/routes/rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const limiter = rateLimit({
router.use(limiter);

const pool = mariadb.createPool({
host: '0.0.0.0',
host: 'database',
port: '3306',
user: 'root',
password: 'admin',
Expand Down
2 changes: 1 addition & 1 deletion backend/routes/searchbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const limiter = rateLimit({
router.use(limiter);

const pool = mariadb.createPool({
host: '0.0.0.0',
host: 'database',
port: '3306',
user: 'root',
password: 'admin',
Expand Down
2 changes: 1 addition & 1 deletion backend/routes/trip.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const limiter = rateLimit({
router.use(limiter);

const pool = mariadb.createPool({
host: '0.0.0.0',
host: 'database',
port: '3306',
user: 'root',
password: 'admin',
Expand Down
2 changes: 1 addition & 1 deletion backend/routes/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ router.use(limiter);

// Database settings
const pool = mariadb.createPool({
host: '0.0.0.0',
host: 'database',
port: '3306',
user: 'root',
password: 'admin',
Expand Down
2 changes: 1 addition & 1 deletion backend/routes/vehicle.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const limiter = rateLimit({
router.use(limiter);

const pool = mariadb.createPool({
host: '0.0.0.0',
host: 'database',
port: '3306',
user: 'root',
password: 'admin',
Expand Down
2 changes: 1 addition & 1 deletion backend/routes/wanted.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const limiter = rateLimit({
router.use(limiter);

const pool = mariadb.createPool({
host: '0.0.0.0',
host: 'database',
port: '3306',
user: 'root',
password: 'admin',
Expand Down

0 comments on commit 1d579b8

Please sign in to comment.