Skip to content

Commit

Permalink
chore: Fix odyssey Dockerfile example
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbachmann committed Feb 20, 2023
1 parent 4eee88c commit e301d68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion odyssey/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build -t livingdocs/odyssey:1.3 . -f debian.Dockerfile
# docker build -t livingdocs/odyssey:1.3 . -f Dockerfile
# docker run --rm -p 6543:6543 livingdocs/odyssey:1.3
FROM debian:bullseye as builder
RUN export DEBIAN_FRONTEND=noninteractive && \
Expand Down
22 changes: 6 additions & 16 deletions odyssey/odyssey.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,14 @@ storage "primary" {
}

database "console" {
user "pooler" {
authentication "scram-sha-256"
pool "session"
storage "local"

auth_query "SELECT * from pooler.lookup_user($1)"
auth_query_db "auth-query"
auth_query_user "pooler"
}

user "postgres" {
user default {
authentication "scram-sha-256"
pool "session"
storage "local"

auth_query "SELECT * from pooler.lookup_user($1)"
auth_query_db "auth-query"
auth_query_user "pooler"
auth_query_db "auth-query"
auth_query_user "pooler"
}
}

Expand All @@ -42,13 +32,13 @@ database "auth-query" {
database default {
user default {
storage "primary"
authentication "scram-sha-256"
authentication "scram-sha-256"

# This requires you to create the pooler schema and the lookup function.
# An example is provided in setup_password_lookup_function.sql
auth_query "SELECT * from pooler.lookup_user($1)"
auth_query_db "auth-query"
auth_query_user "pooler"
auth_query_db "auth-query"
auth_query_user "pooler"

pool "transaction"
pool_size 0
Expand Down

0 comments on commit e301d68

Please sign in to comment.