Skip to content

Commit

Permalink
add simple compose
Browse files Browse the repository at this point in the history
  • Loading branch information
sigrdrifa committed Jun 7, 2024
1 parent 51f7472 commit fac2f6d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '3.8'
services:
db:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=test
ports:
- '5432:5432'
volumes:
- db:/var/lib/postgresql/data
volumes:
db:
driver: local
2 changes: 1 addition & 1 deletion lib/Api/Templates/User/User.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ renderUser user = do
p_ [class_ "text-sm font-normal text-gray-600"] "Party Animal"

renderUsers :: [Entity User] -> Html ()
renderUsers [] = p_ "No guests yet..."
renderUsers [] = ul_ [id_ "users-ul", class_ "divide-y divide-gray-200"] $ li_ [] "No data"
renderUsers users = do
ul_ [id_ "users-ul", class_ "divide-y divide-gray-200"] $ do
mapM_ renderUser users

0 comments on commit fac2f6d

Please sign in to comment.