Skip to content

Commit

Permalink
add backend
Browse files Browse the repository at this point in the history
  • Loading branch information
VENGADESSANE committed Nov 26, 2024
1 parent 884299d commit a6c248f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions backend/bydate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"ddoc": "_design/fbca874dfe74bc7c49c79c60809824e75f66a89a",
"name": "bydate",
"type": "json",
"partitioned": false,
"def": {
"fields": [
{
"issued": "asc"
}
]
}
}
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ services:
command:
- |
curl -X POST http://backend:5984/database_joblinker_prot3/_bulk_docs -H "Content-Type: application/json" -d @/sample_data.json
depends_on:
accessible_backend:
condition: service_completed_successfully

index:
image: curlimages/curl
entrypoint: ["/bin/sh","-c"]
volumes:
- ./backend/bydate.json:/bydate.json
command:
- |
curl -X POST http://backend:5984/database_joblinker_prot3/_index -H "Content-Type: application/json" -d @/bydate.json -u '${COUCHDB_USER}:${COUCHDB_PASSWORD}'
depends_on:
accessible_backend:
condition: service_completed_successfully

0 comments on commit a6c248f

Please sign in to comment.