Organize application logic by core/feature breakouts, add dhall configuration support and add a range of new config options in the Reader, add example configuration/deployment files
This commit is contained in:
		
							
								
								
									
										11
									
								
								examples/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								examples/Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| FROM haskell:9.0.2 | ||||
|  | ||||
| WORKDIR /app | ||||
| ADD . /app | ||||
|  | ||||
| RUN stack setup | ||||
| RUN stack build --copy-bins --local-bin-path ./ | ||||
|  | ||||
| EXPOSE 3000 | ||||
|  | ||||
| CMD ./Purr-exe | ||||
							
								
								
									
										10
									
								
								examples/config.dhall
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								examples/config.dhall
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,10 @@ | ||||
| -- /config.dhall | ||||
| { hostname = "localhost" | ||||
| , port = +3001 | ||||
| , environment = "development" | ||||
| , adminDB = "admin" | ||||
| , dataDB = "data" | ||||
| , collection = "store" | ||||
| , mongoUsername = "root" | ||||
| , mongoPassword = "REPLACEME" | ||||
| } | ||||
		Reference in New Issue
	
	Block a user