summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2024-03-04 16:16:26 +0000
committerGitHub <noreply@github.com>2024-03-04 16:16:26 +0000
commit7d956b52b9562d17b60863c25b88ef23c3dce908 (patch)
tree980a090a0e00553ad8aba1da450dc696862e4d28
parenta5e1d252877af0d7c453a209156205ce6ce9739d (diff)
docs: update docker compose (#1818)
-rw-r--r--docker-compose.yml11
1 files changed, 6 insertions, 5 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index d9305baa..d81af9a4 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -2,7 +2,7 @@ version: '3.5'
services:
atuin:
restart: always
- image: ghcr.io/atuinsh/atuin:latest
+ image: ghcr.io/atuinsh/atuin:<LATEST TAGGED RELEASE>
command: server start
volumes:
- "./config:/config"
@@ -13,13 +13,14 @@ services:
environment:
ATUIN_HOST: "0.0.0.0"
ATUIN_OPEN_REGISTRATION: "true"
- ATUIN_DB_URI: postgres://atuin:really-insecure@db/atuin
+ ATUIN_DB_URI: postgres://$ATUIN_DB_USERNAME:$ATUIN_DB_PASSWORD@db/atuin
+ RUST_LOG: info,atuin_server=debug
postgresql:
image: postgres:14
restart: unless-stopped
volumes: # Don't remove permanent storage for index database files!
- "./database:/var/lib/postgresql/data/"
environment:
- POSTGRES_USER: atuin
- POSTGRES_PASSWORD: really-insecure
- POSTGRES_DB: atuin
+ POSTGRES_USER: ${ATUIN_DB_USERNAME}
+ POSTGRES_PASSWORD: ${ATUIN_DB_PASSWORD}
+ POSTGRES_DB: ${ATUIN_DB_NAME}