diff options
| author | Wil Clouser <wclouser@mozilla.com> | 2025-09-26 10:49:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-26 10:49:51 -0700 |
| commit | ca2b1faa46b852833df205e84d73bafb24065980 (patch) | |
| tree | 359443a0f0dbc0a459e7ed9abb0ae33a04b35e60 | |
| parent | chore: update to Rust 1.90 (#2916) (diff) | |
| download | atuin-ca2b1faa46b852833df205e84d73bafb24065980.zip | |
fix: docker compose link (#2914)
The current docker-compose.yml fails to start today with an error:
service "atuin" depends on undefined service "postgresql": invalid
compose project
This patch modernizes the yml and fixes the link. Tested on docker
compose v2.39.4.
Docs patch is https://github.com/atuinsh/docs/pull/104 . /cc @ellie
## Checks
- [x] I am happy for maintainers to push small adjustments to this PR,
to speed up the review cycle
- [x] I have checked that there are no existing pull requests for the
same thing
| -rw-r--r-- | docker-compose.yml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 1be5e9b8..1ae8e20d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: '3.5' services: atuin: restart: always @@ -6,16 +5,16 @@ services: command: server start volumes: - "./config:/config" - links: - - postgresql:db ports: - 8888:8888 environment: ATUIN_HOST: "0.0.0.0" ATUIN_OPEN_REGISTRATION: "true" - ATUIN_DB_URI: postgres://$ATUIN_DB_USERNAME:$ATUIN_DB_PASSWORD@db/$ATUIN_DB_NAME + ATUIN_DB_URI: postgres://{$ATUIN_DB_USERNAME}:${ATUIN_DB_PASSWORD}@db/${ATUIN_DB_NAME} RUST_LOG: info,atuin_server=debug - postgresql: + depends_on: + - db + db: image: postgres:14 restart: unless-stopped volumes: # Don't remove permanent storage for index database files! |
