Skip to content

Commit ad11898

Browse files
authored
Fix container name for DB URI (#87)
The example `ATUIN_DB_URI` uses `@db` as the hostname, but the container was named `postgresql` which led to connection errors: ``` Location: /app/crates/atuin-server/src/lib.rs:143:10 Error: failed to connect to db: PostgresSettings { db_uri: "postgres://atuin:****@db/atuindb" } Caused by: Other(error communicating with database: failed to lookup address information: Name or service not known Caused by: failed to lookup address information: Name or service not known Location: crates/atuin-server-postgres/src/lib.rs:53:39) ```
1 parent 80b306c commit ad11898

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/self-hosting/docker.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ services:
4949
ATUIN_OPEN_REGISTRATION: "true"
5050
ATUIN_DB_URI: postgres://$ATUIN_DB_USERNAME:$ATUIN_DB_PASSWORD@db/$ATUIN_DB_NAME
5151
RUST_LOG: info,atuin_server=debug
52-
postgresql:
52+
db:
5353
image: postgres:14
5454
restart: unless-stopped
5555
volumes: # Don't remove permanent storage for index database files!

0 commit comments

Comments
 (0)