Squashed commit of the following:
commit 86ee3c4d262916bec531ad5616273b391cdffeb3 Author: James Eversole <james@eversole.co> Date: Tue Jul 5 20:09:22 2022 -0500 Refactored findByLink for modularity, started prototyping document creation commit 65b68df295069edb57adcdc16a3300c9d762dc2f Author: James Eversole <james@eversole.co> Date: Tue Jul 5 18:45:25 2022 -0500 Feature parity with MongoDB implementation in main; need to refactor Feature.Sharing.Couch.findByLink into multiple functions so that more information regarding retrieved documents can be used compositionally to DRY before merging into main commit e10cc4de8acd45488679f0587732f02fee950c77 Author: James Eversole <james@eversole.co> Date: Mon Jul 4 20:53:55 2022 -0500 Better configuration file keys commit d683a51cac4ad891856f7782aa6221402988fea4 Author: James Eversole <james@eversole.co> Date: Mon Jul 4 20:38:40 2022 -0500 Added beginnings of CouchDB logic while removing all Mongo references and dependencies. Updated configuration file and related data types. Added a MonadHttp instance for PurrAction to enable requests in their monadic context. Will merge into main once feature parity on the Sharing Feature is reached
This commit is contained in:
		| @ -1,10 +1,18 @@ | ||||
| -- /config.dhall | ||||
| { hostname = "localhost" | ||||
| , port = +3001 | ||||
| , environment = "development" | ||||
| , adminDB = "admin" | ||||
| , dataDB = "data" | ||||
| , collection = "store" | ||||
| , mongoUsername = "root" | ||||
| , mongoPassword = "REPLACEME" | ||||
| {-  | ||||
|   Default Dhall Configuration for Purr. | ||||
|   You will need to change all instances of "REPLACEME" with the  | ||||
|   appropriate details. Additionally, you may want to change the | ||||
|   applicationPort from 3000 and the couchPort. | ||||
| -} | ||||
|  | ||||
| { environment     = "production" | ||||
| , applicationHost = "REPLACEME" | ||||
| , applicationPort = +3000 | ||||
| , couchHost       = "REPLACEME" | ||||
| , couchPort       = +5984 | ||||
| , couchUsername   = "REPLACEME" | ||||
| , couchPassword   = "REPLACEME" | ||||
| , adminDB         = "REPLACEME" | ||||
| , dataDB          = "REPLACEME" | ||||
| } | ||||
|  | ||||
| @ -2,43 +2,29 @@ version: '3.1' | ||||
|  | ||||
| # Default Docker Stack/Compose configuration for Purr. | ||||
| # You will need to change all instances of "REPLACEME" with the appropriate details. | ||||
| # Additionally, you may want to update the host port definitions for each service and | ||||
| # remove the Mongo Express service entirely for production. | ||||
| # Additionally, you may want to update the host port definitions for each service. | ||||
|  | ||||
| services: | ||||
|   mongodb: | ||||
|     image: mongo:4.4.6 | ||||
|   couchdb: | ||||
|     image: couchdb:3.2.2 | ||||
|     ports: | ||||
|       - 27017:27017 | ||||
|       - 5984:5984 | ||||
|     volumes: | ||||
|       - ./data:/opt/purr/data | ||||
|       - ./data:/opt/couchdb/data | ||||
|     networks: | ||||
|       - webnet | ||||
|     environment: | ||||
|       MONGO_INITDB_ROOT_USERNAME: REPLACEME | ||||
|       MONGO_INITDB_ROOT_PASSWORD: REPLACEME | ||||
|  | ||||
|   mexpress: | ||||
|     image: mongo-express | ||||
|     ports: | ||||
|       - 8081:8081 | ||||
|     environment: | ||||
|       ME_CONFIG_MONGODB_ADMINUSERNAME: REPLACEME | ||||
|       ME_CONFIG_MONGODB_ADMINPASSWORD: REPLACEME | ||||
|       ME_CONFIG_MONGODB_SERVER: mongodb | ||||
|     networks: | ||||
|       - webnet | ||||
|     depends_on: | ||||
|       - mongodb | ||||
|       COUCHDB_USER: REPLACEME | ||||
|       COUCHDB_PASSWORD: REPLACEME | ||||
|  | ||||
|   purr:  | ||||
|     image: purr | ||||
|     ports:  | ||||
|       - 3000:3000 | ||||
|       - 5195:3000 | ||||
|     networks: | ||||
|       - webnet | ||||
|     depends_on:  | ||||
|       - mongodb | ||||
|       - couchdb | ||||
|  | ||||
| networks: | ||||
|   webnet: | ||||
|  | ||||
		Reference in New Issue
	
	Block a user