Skip to content

Commit

Permalink
Merge pull request #5 from evgenygorchakov/module4-task1
Browse files Browse the repository at this point in the history
  • Loading branch information
keksobot authored Jun 16, 2024
2 parents c5d299a + 064b9ba commit 83c25a4
Show file tree
Hide file tree
Showing 53 changed files with 1,126 additions and 150 deletions.
26 changes: 26 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
services:
db:
image: mongo:4.2
container_name: six-cities_mongo_db
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_USER}
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASSWORD}
ports:
- ${DB_PORT}:27017
volumes:
- six-cities_data:/data/db

db_ui:
image: mongo-express:1.0.2-20
container_name: six-cities_mongo_express
ports:
- 8081:8081
environment:
ME_CONFIG_BASICAUTH_USERNAME: ${DB_USER}
ME_CONFIG_BASICAUTH_PASSWORD: ${DB_PASSWORD}
ME_CONFIG_MONGODB_ADMINUSERNAME: ${DB_USER}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${DB_PASSWORD}
ME_CONFIG_MONGODB_URL: mongodb://${DB_USER}:${DB_PASSWORD}@db:${DB_PORT}/

volumes:
six-cities_data:
1 change: 1 addition & 0 deletions mocks/mock-data-example.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Breathtaking Mountain views in cozy Birdbox Enjoy the relaxed and comfortable enclosure of the Birdbox. Sleep right beside nature and its amazing surroundings. 2022-04-06T08:45:40.283Z Dusseldorf preview.jpg photo1.jpg;photo2.jpg;photo3.jpg;photo4.jpg;photo5.jpg;photo6.jpg 0 1 5 house 2 4 2400 Laptop;friendly;workspace;Baby seat;Washer;Towels;Fridge John [email protected] ava.jpg qwerty pro 48.85661;2.351499
1 change: 0 additions & 1 deletion mocks/mock-data.tsv

This file was deleted.

6 changes: 4 additions & 2 deletions mocks/mock-server-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"photo1.jpg",
"photo2.jpg",
"photo3.jpg",
"photo4.jpg"
"photo4.jpg",
"photo5.jpg",
"photo6.jpg"
],
"types": [
"apartment",
Expand Down Expand Up @@ -82,7 +84,7 @@
"qwerty2"
],
"userTypes": [
"common",
"regular",
"pro"
]
}
Expand Down
Loading

0 comments on commit 83c25a4

Please sign in to comment.