Skip to content

Commit 0e070ca

Browse files
authored
Merge pull request #3 from aiondemand/feat/rename-containers
Feat/rename-containers
2 parents 2e11cb5 + 237d84b commit 0e070ca

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

Diff for: app/.env_example

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Authentication and authorization
22

3-
KEYCLOAK_URL=http://172.18.1.3:8081/aiod-auth/ # This corresponds to UNIZAR's testing Keycloak instance. Replace if necessary
3+
KEYCLOAK_URL=https://aiod-dev.i3a.es/aiod-auth/ # This corresponds to UNIZAR's testing Keycloak instance. Replace if necessary
44
KEYCLOAK_REALM=aiod
55
KEYCLOAK_CLIENT_ID=mylibrary-backend # a private client, used by the backend
66
KEYCLOAK_CLIENT_ID_SWAGGER=marketplace # a public client, used by frontend and Swagger

Diff for: app/server/database.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
load_dotenv()
1010

1111
client = motor.motor_asyncio.AsyncIOMotorClient(os.environ["DB_URL"])
12-
database = client.marketplace
12+
database = client.mylibrary
1313
libraries_collection = database.get_collection(
1414
os.getenv("DB_LIBRARIES_COLLECTION")
1515
)

Diff for: app/server/routes/libraries.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ async def delete_library_asset(
9292
)
9393

9494
@LibrariesRouter.post(
95-
"/{id_user}/purchases",
95+
"/{id_user}/assets",
9696
response_description="Add new items to a user's library. \
9797
If this is the first time a user acquires items, the library is created"
9898
)

Diff for: docker-compose.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
version: '3.8'
1+
version: "3.8"
22

33
services:
44
api:
5+
container_name: mylibrary-backend-api
56
build: ./app
67
volumes:
78
- .:/code
@@ -12,12 +13,12 @@ services:
1213
depends_on:
1314
- db
1415
db:
16+
container_name: mylibrary-backend-db
1517
image: mongo
1618
ports:
1719
- 37017:27017
1820
volumes:
19-
- db:/data/db
20-
21+
- mylibrary-backend-db:/data/mylibrary-backend-db
2122

2223
volumes:
23-
db:
24+
mylibrary-backend-db:

0 commit comments

Comments
 (0)